I've got a url set up like in python django 1.9
url(r'^faq/?$', views.faq, name="faq"),
However, if I go to a url with #anchors in them, it keeps removing the #anchor part in all browsers.
So, localhost:5000/faq#12
always goes to localhost:5000/faq
.
How do I get django to keep the #anchor section?
UPDATE:
I'm not trying to pass any data to the server. The FAQ page has a bunch of questions with unique id. /faq#12
should take the view directly to the div#12
. It's for the browser and doesn't have anything to do with the server side at all.