-
-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for static prefix on dynamic paths #707
Labels
enhancement
New feature or request
Comments
Now that things are pretty stable, I'd like to see this PR updated. |
I updated the PR to remove the merge conflicts but didn't do an in-depth look at what's changed in the last 4 months |
Any update on this? |
this was closed: #709 would need to be redone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Currently TanStack Router supports dynamic path segments in the form
/$var/
. However it is sometimes useful to have a static prefix (or suffix) that is used as part of the matching. For exampleyoutube.com/@ChannelName
.This is a feature request for Router to support the form
/prefix$var/
(or some other way of having a static prefix mixed with a dynamic variable). Optionally it would be nice to also support suffixes, perhaps in the form/prefix$var$suffix/
?Your Example Website or App
https://stackblitz.com/edit/tanstack-router-jwzga9?file=src%2Fmain.tsx
Steps to Reproduce the Bug or Issue
This will not be recognized as a dynamic route and
var
will not be available inparams
Expected behavior
var
would be available inparams
Screenshots or Videos
No response
Platform
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: