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 3a97163 commit e6bf332Copy full SHA for e6bf332
packages/router-generator/src/generator.ts
@@ -1247,7 +1247,7 @@ ${acc.routeTree.map((child) => `${child.variableName}Route: typeof ${getResolved
1247
)
1248
1249
if (
1250
- node._fsRouteType === 'layout' ||
+ (node._fsRouteType === 'layout' && node.cleanedPath !== '/') ||
1251
node._fsRouteType === 'pathless_layout'
1252
) {
1253
node.cleanedPath = removeTrailingSlash(node.cleanedPath)
0 commit comments