Sometimes in my code I pass get parameters with URL's. One particular scenario is if the user is not logged in, but puts a URL for a page that requires login, they will be required to login first.
In that case I may have a URL such as: www.example.com/home/#/main/
.
The end of the URL /#/main/
is for angular. However, in django when I do the below to get the next
parameter above, I do this:
self.request.GET.get('next', self.redirect_url)
The problem is that in this case, next
provides everything but the angular portion, so I get: www.example.com/home/
.
Is there anyway to get the remaining portion of the URL as well?