Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The relative routing does not allow updating the path params using the <Link> component. #2801

Open
RobertOstermann opened this issue Nov 19, 2024 · 0 comments

Comments

@RobertOstermann
Copy link

Which project does this relate to?

Router

Describe the bug

I am attempting to update only the path params from the current route, but the params are not updating. This seems to work for search params.

Your Example Website or App

https://stackblitz.com/edit/tanstack-router-hjja2d?file=src%2Froutes%2Fposts.%24postId.tsx

Steps to Reproduce the Bug or Issue

  1. Go to the stackblitz.
  2. Click on the posts link and select the first post.
  3. There should be a link on that page that says "Switch to post 2"
  4. Attempt to click on the link
  5. Notice the path is not updated

Expected behavior

Path params to get replaced when navigating to '.'.

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

This might be related to #2415, but I wasn't sure since that is using navigate instead of a link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant