I am using django-braces's LoginRequiredMixin in a Django 1.6 project. This mixin replicates Django's login_required decorator.
I have a view that uses the LoginRequiredMixin
that has a URL like this: /spa_home/#price_requests/68
. If I try to hit this URL without being logged in, the mixin correctly sends me to the login page with a request like this: /accounts/login/?next=/spa_home/#price_requests/68
. Unfortunately, after successfully logging in, the URL hash fragment is left off and I am just redirected to /spa_home/
.
What is the best way to fix this? Removing hash fragments from my application would be a large effort.
See Question&Answers more detail:os