Answer the question
In order to leave comments, you need to log in
How to process URL correctly in django?
The html page has a link like this
<a href="https://oauth.vk.com/authorizev=5.95&display=page&response_type=token&client_id=7002915&scope=wall&redirect_uri=https://xxxx.ru/main/redirect/">линк</a>
https://vk-xxxx.ru/main/redirect/#access_token=3faeb619b38ertyy2d5b056a334yytrr9ec200fbfa3a82rrrrrd53567c908ce7f007f7bad8deb63ff70af&expires_in=86400&user_id=56778998
def redirect(request):
return render(.....)
Answer the question
In order to leave comments, you need to log in
How can I get the contents of the URL after # in this View
No way, browsers don't pass this part to the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question