Skip to content

_ folder breaks getRouteApi matching #5296

@AshotN

Description

@AshotN

Which project does this relate to?

Router

Describe the bug

getRouteApi is unable to math paths when called from a _ folder that.

Your Example Website or App

https://github.com/AshotN/TanStack-Router-routeAPIBug

Steps to Reproduce the Bug or Issue

  1. Clone provided repo
  2. Navigate to http://localhost:3000/dir/123. Notice it works
  3. Navigate to http://localhost:3000/dir/123/file. Fails

Expected behavior

I would expect both paths to be able to read the param {id: 123}

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.132.23

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