Nested index routes cause double slash in route names #2703
ReproductionSee steps to reproduce Steps to reproduce the bugUsing file based routing create:
Expected behaviorIt is expected, that the nested routes will look like all other non-index nested routes: '/posts/': RouteRecordInfo<
'/posts/',
'/posts',
Record<never, never>,
Record<never, never>,
| never
>Actual behaviorIt will generate leading double slashes and no trailing slashes for nested route names which then look like this: '/': RouteRecordInfo<
'/',
'/',
Record<never, never>,
Record<never, never>,
| '//posts'
>,
'//posts': RouteRecordInfo<
'//posts',
'/posts',
Record<never, never>,
Record<never, never>,
| never
>,Additional informationAm not sure if nested index routes are even possible? |
Answered by
posva
May 7, 2026
Replies: 1 comment
|
This is intended, it's just the name, the path is still correct. |
0 replies
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is intended, it's just the name, the path is still correct.
tip: use route groups to have a name without two slashes together