routify
routify copied to clipboard
Route parameters capture too much: `test[slug].svelte` slug is "testfoo" not "foo"
routify 1.9.7
create src/pages/test[slug].svelte
:
<script>
import { params } from '@sveltech/routify'
export let slug;
</script>
<p>slug {JSON.stringify(slug)}</p>
<p>params {JSON.stringify($params)}</p>
visit /testfoo
, observe output
slug "testfoo"
params {"slug":"testfoo"}
Expected "foo" for both.