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
Navigating to an API only route yields a 404 in the console. If we do a redirect inside the api route to the app, it does not update the URL correctly.
Essentially, our client router is reporting a 404 because API handlers are not part of the navigable routes list (only pages are). The end result is that we perform a native navigation to the API handler URL and end up being redirected correctly anyway so I think it's fine?
Ideally, a 404 isn't logged since the API handler route is our own. However, I'm not sure it's worth sending that extra information to the client.
Describe the bug
Navigating to an API only route yields a 404 in the console. If we do a redirect inside the api route to the app, it does not update the URL correctly.
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-ipxflmtx
/moonlight
)Logs
The text was updated successfully, but these errors were encountered: