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.
rewriteBasepath
1 parent 7771c00 commit ea4b76bCopy full SHA for ea4b76b
packages/router-core/src/rewrite.ts
@@ -24,7 +24,7 @@ export function rewriteBasepath(opts: {
24
}) {
25
const trimmedBasepath = trimPath(opts.basepath)
26
const regex = new RegExp(
27
- `^/${trimmedBasepath}/`,
+ `^/${trimmedBasepath}(?:/|$)`,
28
opts.caseSensitive ? '' : 'i',
29
)
30
return {
0 commit comments