Chrome fails to follow a link and then scroll.
For example if I am on the home page of my website (nanite.com.au) and the user clicks a link that contains products.html#build or http://nanite.com.au/products.html#build it fails to redirect to the new page. However the address bar does change to http://nanite.com.au/index.html#products.html#build
Is this Chrome or have I coded something incorrectly?
Just to clarify, if I am on the products.html page the scrolling works perfectly.
If you look in the javascript that you’re using for the scrolling effect we find this:
Basically any link that has a
#in it will be made to scroll instead of actually changing page.You need to change this so it looks for where href begins with
#. So you would change it to:Notice that
$('a[href*=#]')has become$('a[href^=#]').