-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
information neededFurther information is requestedFurther information is requested
Description
Describe the bug
When trailingSlash: 'always' is set in createRouter, the canonical link href returned by a route's head() function and read through useRouterState via match.links does not have a trailing slash enforced.
The trailingSlash option correctly enforces trailing slashes on navigation URLs, but the href values in the links array on route matches are returned as-is without the trailing slash transformation applied.
Expected behavior
When trailingSlash: 'always' is configured, the router should ensure that href values in match.links also have a trailing slash appended.
How often does this bug happen?
Every time
Platform
@tanstack/react-routerversion1.157.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
information neededFurther information is requestedFurther information is requested