Skip to content

Route segments postfixed with _ aren't being included in params with useParams #5133

Closed

Description

@paul-sachs

Which project does this relate to?

Router

Describe the bug

When using a directory that should skip matching the route using a postfixed _, any params that were postfixed with _ are getting excluded when using useParams({ from: "/test/$owner_" }). This used to work in 1.131.7 but no longer works in 1.131.40

Your Example Website or App

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

Steps to Reproduce the Bug or Issue

  1. Go to reproduction
  2. Click on New entity nav item
  3. Note that it outputs a blank {} in the content of the page

Expected behavior

I expected to see { owner: "x" } since that's the parameters that should be resolved according to the types.

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.131.40
  • OS: macOS
  • Browser: Chrome
  • Browser Version: 139
  • Bundler: Vite
  • Bundler Version: 6.3.5

Additional context

No response

Activity

  1. self-assigned this
    on Sep 11, 2025
  2. nlynzaad commented on Sep 11, 2025

    @nlynzaad
    Contributor

    thanks for reporting and providing the reproducer. I have located to cause and will release a fix shortly

  3. added a commit that references this issue on Sep 11, 2025
  4. paul-sachs commented on Sep 11, 2025

    @paul-sachs
    ContributorAuthor

    @nlynzaad Thanks so much for the quick turn around, you guys rock 🥳

  5. added a commit that references this issue on Sep 11, 2025
    2b6789b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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