Issue
I have a portal(python3+flask) with authorization.
How can I make sure that when a user tries to access any page of the portal after authorization, the user is redirected not to a static page, but to the page that the user requested before the authorization page?
Solution
Without any code, its hard to help you - I'm going to assume that you aren't using a library like Flask-Login.
That being said, take a look at request.referrer
; once a user has successfully authenticated, you can just redirect the user to the URL value inside the referrer.
Hope this helps.
Answered By - Undesirable
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.