Redirect not working #2407
-
I made a mini example of my code to test if Redirect works I copied the code from the docs mainly, so not sure where is the problem When I access to "/sample" I should get redirected to index, but I'm getting 500.
The logs:
|
Beta Was this translation helpful? Give feedback.
Answered by
JacobCoffee
Oct 6, 2023
Replies: 1 comment 3 replies
-
I believe the correct code is return Redirect(path=f"/?token={token}") https://docs.litestar.dev/latest/reference/response/redirect.html#module-litestar.response.redirect |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Alc-Alc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe the correct code is
https://docs.litestar.dev/latest/reference/response/redirect.html#module-litestar.response.redirect