I am working on a very Ajax-heavy site that uses History.js, which basically ports HTML5's pushState and replaceState to HTML4.
Anyways, in HTML4 browsers, the pseudo-url is added after the hash tag in an url.
I want to redirect any requests to any page with a hash in the url to the url after the hash.
For example, a user puts this into their address bar:
will be redirected to:
This of course would only be so that if a user were to bookmark my site and return to it, or post the link to a web site, the returning url would start out cleaner.
I think I have the regex figured out:
r'^$/%23.(?P<hash_url>\d+) # %23 is "#"
i just need to know how to redirect...
Gracias por adelantado
preguntado el 27 de agosto de 11 a las 17:08