Dynamic Segment Ignored #929
-
So I practically am replicating the example from https://tanstack.com/router/v1/docs/guide/route-paths#dynamic-segments, but my application just goes to the Here's my code:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Btw this alternative way works as suggested by https://tanstack.com/router/v1/docs/guide/route-paths#inner-path-slashes. Just not sure if this ought to be the way I do it given the previous link's docs.
This alternative way |
Beta Was this translation helpful? Give feedback.
-
You probably should define a separate |
Beta Was this translation helpful? Give feedback.
Can you put the example up on e.g. codesandbox or a git repo? Trying to guess from some screenshots is not so great.
However, it looks like the routing works as expected?
users/2
=>users/$userID
users/
=>users/
What's the actual issue?
Is it that
UserDetailPage
is used in both routes?How about: