fix: main index not found in group (#1710)

This commit is contained in:
Marvin Hagemeister
2023-09-05 12:16:19 +02:00
committed by GitHub
parent c767cc5067
commit ac5e4c5ca1
7 changed files with 64 additions and 0 deletions
+5
View File
@@ -1183,6 +1183,11 @@ export function pathToPattern(path: string): string {
route += "/" + pattern;
}
// Case: /(group)/index.tsx
if (route === "") {
route = "/";
}
return route;
}