0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/e2e/solid-router/basic-file-based
Nico Lynzaad ab12c06634
fix(router-core): parse non-nested path params correctly (#5165)
When parsing path params to interpolate the path non-nested path params
```/path/$param_``` was being parsed in the same manner as regular path
params ```/path/$param```.

This PR adds consideration for the trailing underscore when parsing the
path for non-nested path params as well as unit tests on path
interpolation and e2e tests for useParams to ensure this is parsed
correctly and updates correctly when params change.

This resolves #5164

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- New Features
- Support trailing-underscore non-nested path params (e.g., /users/$id_
→ /users/123).
- UI shows an additional navigation link for the non-nested route
(/params-ps/non-nested/foo2/bar2) and improved link display text.

- Tests
- Expanded React and Solid e2e tests to cover the new link, navigation,
and param parsing for foo2/bar2.
- Added unit tests validating interpolation/matching for the $param_
syntax.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
History 2025-09-18 20:28:01 +02:00
..
src fix(router-core): parse non-nested path params correctly (#5165) 2025-09-18 20:28:01 +02:00
tests fix(router-core): parse non-nested path params correctly (#5165) 2025-09-18 20:28:01 +02:00
.gitignore chore(e2e): move hash related test utils to the shared package (#3782) 2025-03-16 14:24:39 +13:00
index.html fix(solid-router): make HeadContent work for client navigation (#3616) 2025-03-01 13:10:44 +01:00
package.json fix: assign random ports for e2e tests (#4676) 2025-07-17 07:24:59 +02:00
playwright.config.ts test(e2e): use locally hosted api over an external provider (#4725) 2025-07-22 00:15:28 +02:00
postcss.config.mjs feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
tailwind.config.mjs feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
tsconfig.json test(e2e): use locally hosted api over an external provider (#4725) 2025-07-22 00:15:28 +02:00
vite.config.js feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00