Im using jQuery, my problem..
my URL looks like this after an ajax request (using hashchange function to enable history) :
mysite.com/Content/#Disc%2Findex
I want it to look like this:
mysite.com/Content/#Disc/index
I noticed this line in my js:
url = url.replace(/^.*#/, '');
Does this have anything to do with it? when i stick an / in between the quotes it works but my content doesnt load.
Use:
to convert the %2F to a /. The url.replace line you mention would strip the url up to and including a # character, so:
would become: