You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
when trailingSlash: always loaders do not run if the trailing-slash is not present #1774
found a small issue with route loaders and trailingSlash: always:
the loaders don't run if I navigate to a route without a trailing slash, like /about. This can happen if the user types in the url manually. What happens is:
changed the title [-]with `trailingSlash: always` loaders do not run if the trailing-slash is not present[/-][+]when `trailingSlash: always` loaders do not run if the trailing-slash is not present[/+]on Jun 18, 2024
Activity
[-]with `trailingSlash: always` loaders do not run if the trailing-slash is not present[/-][+]when `trailingSlash: always` loaders do not run if the trailing-slash is not present[/+]schiller-manuel commentedon Jun 19, 2024
I added a
beforeLoadhttps://stackblitz.com/edit/tanstack-router-af56kj?file=src%2Fmain.tsx,src%2Froutes%2F__root.tsx,src%2Froutes%2Fabout.tsx&preset=node
Accessing
about/works as expected:but accessing
aboutwithout the trailing slash causes the following error inloader:schiller-manuel commentedon Jul 6, 2024
this will be fixed by #1907
reproducer with the pre-release package: https://stackblitz.com/edit/tanstack-router-tlpd87?file=src%2Fmain.tsx,src%2Froutes%2F__root.tsx,src%2Froutes%2Fabout.tsx&preset=node