Let's say I have a /foo
route. But sometimes people hit /foo
with a language parameter: /fr/foo
. And other times they might hit it with a language and a country: /ca/fr/foo
So I need a routing table like
[country]/[language]/foo
[language]/foo
/foo
That all direct to the same page.
Should I create a tree like this?
src/routes
└── [country]
└── [language]
└── foo.svelte
If that's the answer then how do I direct [language]/foo
to [country]/[language]/foo
?