Skip to content

Commit 6a7291d

Browse files
author
wuls
committed
fix: a bug
1 parent a418b91 commit 6a7291d

File tree

1 file changed

+1
-1
lines changed
  • packages/qwik-city/utils

1 file changed

+1
-1
lines changed

packages/qwik-city/utils/fs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function getPathnameFromDirPath(opts: NormalizedPluginOptions, dirPath: s
3333
// remove grouped layout segments
3434
.filter((segment) => !isGroupedLayoutName(segment))
3535
.join('/');
36-
36+
if (pathname === '') return '/';
3737
return pathname;
3838
}
3939

0 commit comments

Comments
 (0)