Skip to content

rx.redirect() to HTTP referer #3742

Answered by ijohn
ijohn asked this question in Q&A
Aug 5, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi! Thanks for the response.

I had checked the docs and the method you pointed out before asking. That method doesn't answer my question.

For the benefit of others trying to figure out the same issue:

Lendemor (Legendmor) in Reflex's Discord helped me out with the following response:

"When running check_login, you can store the current page URL before going to /login/.
Then when the login is complete, do a rx.redirect to the URL you stored previously."

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ijohn
Comment options

Answer selected by ijohn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants