Skip to content

Route params with trailing underscore ($param_) do not update when navigating #5164

@fedeq

Description

@fedeq

Which project does this relate to?

Router

Describe the bug

When defining a route param with an underscore suffix (e.g. $owner_), the param does not update when navigating between links that change the param value. Instead, the first visited value is “stuck” and reused, even though the URL changes.

Your Example Website or App

https://stackblitz.com/edit/github-z1rasdxr-lgf2emct?file=src%2Froutes%2Ftest%2F%24owner_%2Froute.tsx

Steps to Reproduce the Bug or Issue

  1. Navigate to Owner X1
  2. Navigate to Owner X2

Expected behavior

When navigating to the link with owner: "x2", the rendered params should update to { owner: "x2" }

Screenshots or Videos

Tanstack.Router.param.bug.-.StackBlitz.-.Google.Chrome.2025-09-17.17-47-13.mp4

Platform

  • Router / Start Version: 1.131.44
  • OS: Windows
  • Browser: Chrome
  • Browser Version: 139.0.7258.155
  • Bundler: vite
  • Bundler Version: 6.3.5

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions