Skip to content

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

@RobertOstermann

Description

@RobertOstermann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions