fallthough doesn't catch all #5423
-
[fallthough].svelte doesn't catch 404 form urls with subsequent path:
How to catch all urls that are giving 404s? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Your post is unclear. Does ok mean it gives a 404 or 200? What's different between those two URLs? It's not clear to me what routes exist in your application |
Beta Was this translation helpful? Give feedback.
-
Maybe you should try to replace
|
Beta Was this translation helpful? Give feedback.
Maybe you should try to replace
[fallthough].svelte
with[...fallthough].svelte
in order to catch subsequent paths.If it's what you meant:
[a].svelte
Will only catch paths like/api/something
,/api/blabla
... but will not catch sub paths like/api/test/test
Whereas
[...b]
will catch all paths that start with/api/
(in this example paths like/api/something
will be firstly pass to[a].svelte
before[...b].svete
) so[...b]
will catch paths like/api/sub/path/test
(If I correctly understood the docs).