Embedded Dynamic Routes? #5797
-
--- index.svelte '[country]' and '[town]' and '[street]' are folders, the rest are files. The town folder seems to be throwing the 404 error. say my URL is 'localhost:1234/england/cornwall' or 'localhost:1234/england/cornwall/launceston' it is throwing an error. Not sure how do do it properly and can't find an answer online, any help would be massively appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Then in fetch use as ...${country}/${town} You can find some examples here |
Beta Was this translation helpful? Give feedback.
const { country, town } = params;
Then in fetch use as ...${country}/${town}
You can find some examples here