1
Usually, if you were redirected by @login_required
decorator, the next
query parameter is added to the path. For example:
127.0.0.1:8000/login/?next=/profile
So you can check if next
is in the request.GET
.
Source:stackexchange.com
1
Usually, if you were redirected by @login_required
decorator, the next
query parameter is added to the path. For example:
127.0.0.1:8000/login/?next=/profile
So you can check if next
is in the request.GET
.