Routes work strange #2787
Unanswered
onderbakirtas
asked this question in
Q&A
Replies: 1 comment
-
I can't seem to repro this -- do you have an example repo? I created <!-- a.svelte -->
<h1>Hello, I'm A!</h1> <!-- [slug].svelte -->
<script>
import { page } from '$app/stores';
</script>
<h1>This is a slug: {$page.params.slug}</h1> The docs on fallthrough routes might be relevant, though I think it would indicate that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, all. I think this is not documented or I couldn't find in the docs. Say that we have 2 files, one is named
routes/[slug].svelte
and the other one isroutes/a.svelte
. When I navigate toabc.com/a
, I expect to see the contents of thea.svelte
file, but instead[slug].svelte
file takes the priority show its contents. Is this desired behavior? Same thing happens when I placea.svelte
in its own folder, like thisa/index.svelte
. Thanks for your answers.Beta Was this translation helpful? Give feedback.
All reactions