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 004f051 commit dd035c3Copy full SHA for dd035c3
packages/routes/src/PagesService.ts
@@ -54,6 +54,7 @@ export function resolvePageMeta(
54
function resolveRoutePath(basePath: string, relFilePath: string) {
55
let routePath = path
56
.trimExt(normalizeRoutePath(relFilePath)) // remove ext
57
+ .replace(/\/page$/, '') // remove '/page'
58
.replace(/^(\/index){2}$/, '') // remove '/index/index'
59
.replace(/\/index$/, '') // remove '/index'
60
.replace(/\/README$/i, '') // remove '/README'
0 commit comments