The best and proper way to make optional subpath at the beginning of URL #16109
Unanswered
kolnogorov
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have a project with some city-dependent pages.
There are some cities with one default city. So, folder stucture could look like this:
So route should look like
/london/about
and/paris/contacts
.But i need to have one default city, whose pages should be accessible without city slug. Let's say, it's Moscow, so by default:
/about
and/contacts
should be opened under Moscow (but withoutmoscow
in url ), and/london/about
or/paris/contacts
should be opened under London and Paris as usual.So, can I somehow make into this?
Thank you very much in advance!
Beta Was this translation helpful? Give feedback.
All reactions