Regex is possible to add in defineRoutes path? #6886
Unanswered
pankaj91as
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Remix doesn't support regex in route definitions. You would need to have a single route and match the param in your loader, then render the correct UI. Instead, I would recommend updating your URL format to something like
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am facing an routing issue in remix v1.19.0.
I find a lot in the document, as well on network but i haven't got any solution for my routing problem.
I have two routes similer like mentioned below:
i was trying to route these two path. These two paths should open two diffrent layout from pages.
I tried something like below, please let me know is it something possible in V2?
only the diffrence in these two paths is, one path having slug which is ending with numerical values.
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions