We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2b173c commit 06b8c1bCopy full SHA for 06b8c1b
packages/next-on-pages/templates/_worker.js/routes-matcher.ts
@@ -361,6 +361,9 @@ export class RoutesMatcher {
361
this.path = this.path.replace(/\.rsc/i, '');
362
}
363
364
+ // Prevent `//` in path names.
365
+ this.path = this.path.replace(/\/\//g, '/')
366
+
367
// Merge search params for later use when serving a response.
368
const destUrl = new URL(this.path, this.url);
369
applySearchParams(this.searchParams, destUrl.searchParams);
0 commit comments