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
Expected behavior is that you first check whether the [page] is a valid page. If yes, you return props and render the page. If NOT you should be able to return { fallthrough: true } and kit will process the next route, [project], in this case.
However it doesn't work when you use endpoints shadowing the route. It works as expected when using load() function within the svelte component file. It works on first render or full page refresh. However it breaks when navigating. SvelteKit somehow gets stuck on [page]/index.svelte component and renders itself instead of falling through to the next one.
Describe the bug
Problem happens when you have multiple dynamic routes at the same level. Example:
Expected behavior is that you first check whether the
[page]
is a valid page. If yes, you return props and render the page. If NOT you should be able to return{ fallthrough: true }
and kit will process the next route,[project]
, in this case.However it doesn't work when you use endpoints shadowing the route. It works as expected when using
load()
function within the svelte component file. It works on first render or full page refresh. However it breaks when navigating. SvelteKit somehow gets stuck on[page]/index.svelte
component and renders itself instead of falling through to the next one.Reproduction
https://github.com/lemmon/svelte-kit-fallthrough-endpoint-bug
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: