Which project does this relate to?
Router
Describe the bug
The JS value of Route.to has a trailing slash, while the type does not.
Your Example Website or App
https://stackblitz.com/edit/github-x8vduv4u?file=src%2Froutes%2Findex.tsx,src%2Froutes%2Fposts%2Findex.tsx
Steps to Reproduce the Bug or Issue
- navigate to
/posts
Expected behavior
The value should be /posts instead of /posts/.
Screenshots or Videos
No response
Platform
- OS: Win11
- Browser: Chrome
- Version: 131.0.6778.140
Additional context
Route.fullPath does have the trailing slash for both the type and the value.
I expected Route.to to not have the trailing slash.
Which project does this relate to?
Router
Describe the bug
The JS value of
Route.tohas a trailing slash, while the type does not.Your Example Website or App
https://stackblitz.com/edit/github-x8vduv4u?file=src%2Froutes%2Findex.tsx,src%2Froutes%2Fposts%2Findex.tsx
Steps to Reproduce the Bug or Issue
/postsExpected behavior
The value should be
/postsinstead of/posts/.Screenshots or Videos
No response
Platform
Additional context
Route.fullPathdoes have the trailing slash for both the type and the value.I expected
Route.toto not have the trailing slash.