jquery-smooth-scroll
jquery-smooth-scroll copied to clipboard
Issue with linking to homepage from inside page
Hey,
I have this plugin on a site, which was just a single page layout. We've since added a couple of other pages but when i click on a link from the inside page it doesn't redirect to the homepage.
For example, say I'm on the page inside.html, and the menu has a link like <a href="/#about"... If I click on the link from the homepage it works as expected. But if I click on the link from the inside.html page it doesn't. I would expect it to redirect me back to the homepage and then scroll down to the about anchor.
Any help/suggestions would be greatly appreciated.
Hi @Silverbug . I've described a way to do this in the README: https://github.com/kswedberg/jquery-smooth-scroll#smooth-scrolling-on-page-load
Let me know if you still have questions.
Do you have a working example for this one? Will this work in multiple pages?