I have a Fiddle to look at. The hashchange will not work in jsFiddle, but you can at least see the code:
When I click on links the URL changes to:
index.html#url=%23about-us
rather than:
index.html#about-us
Any ideas what I’m doing wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you can change your code to
$.bbq.pushState({ href });Check out this fiddle (not in iframe) … and the actual fiddle
Updated code