No redirection using throw redirect in middleware
Hello, there is something I don't understand, below is my setup, why the redirect does not work ?? I just get an error on my ErrorCatchBoundary. It is like the error is not handled by the router lifecycle, but I don't understand why....
when the throw redirect is hit i just get my "An error occurred page" instead of a redirection. (I'm using SPA mode, defaultSsr to false in router and a shell component for information).
Thanks in advance :).
2 Replies
continuing-cyan•2d ago
can you please create a GitHub issue including a complete minimal example for this?
unwilling-turquoiseOP•8h ago
I can try but in the mean time I can show you the results of my global error middleware when I console log the object:
When I have a redirection in a middleware I got a Response 307 object.
whereas the notFound works as expected and the returned data are: