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 fa7f933 commit 6f4c824Copy full SHA for 6f4c824
packages/router/utils.ts
@@ -378,7 +378,8 @@ function flattenRoutes<
378
relativePath?: string
379
) => {
380
let meta: RouteMeta<RouteObjectType> = {
381
- relativePath: relativePath ?? (route.path || ""),
+ relativePath:
382
+ relativePath === undefined ? route.path || "" : relativePath,
383
caseSensitive: route.caseSensitive === true,
384
childrenIndex: index,
385
route,
0 commit comments