Skip to content

How handle optional prefix in routes #2004

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

Closed
Bloomca opened this issue Sep 18, 2015 · 1 comment
Closed

How handle optional prefix in routes #2004

Bloomca opened this issue Sep 18, 2015 · 1 comment

Comments

@Bloomca
Copy link

Bloomca commented Sep 18, 2015

Hi!

I have a problem – I have an optional prefix for any route which looks like "/ca/en/english".
But I have to parse it and treat only if it will succeed my regex (something like //[a-z]{2]/[a-z]{2}/[^/]+//). So, what is the best approach to make it possible with react router?

I saw this one, but, to be honest, this approach seems like the invention of my own router.

Any ideas?

Thanks!

@mjackson
Copy link
Member

See remix-run/history#61

@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants