remix-flat-routes icon indicating copy to clipboard operation
remix-flat-routes copied to clipboard

Limitation range for optional parameters

Open SihirliDev opened this issue 1 year ago • 0 comments

Hello,

I have configured my routes under routes/($lang) folder.

Now I can access my site at www.mysite.com/en/.... or www.mysite.com/de/....

However it also responds to anything other than locales as expected like www.mysite.com/blablabla

Is there a workaround to limit the lang parameter only for these two languages and throw a 404 otherwise?

Thank you!

SihirliDev avatar Dec 25 '23 21:12 SihirliDev