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 c3af4b8 commit 6bc7f5bCopy full SHA for 6bc7f5b
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