You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
Is your feature request related to a problem? Please describe.
I'd like the ability to have catch all functionality for scenarios where I don't know the number of parameters ahead of time.
Describe the solution you'd like
Ability to create a catch-all route by naming a file.
Example:
/src/routes/posts/[...slug].svelte
user navigates to /posts/a/b
page.params would then contain { "slug": ["a", "b"] }
Is your feature request related to a problem? Please describe.
I'd like the ability to have catch all functionality for scenarios where I don't know the number of parameters ahead of time.
Describe the solution you'd like
Ability to create a catch-all route by naming a file.
Example:
/src/routes/posts/[...slug].svelte
/posts/a/b
page.params
would then contain{ "slug": ["a", "b"] }
Additional context
Inspired by next.js: https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes
The text was updated successfully, but these errors were encountered: