jquery-smooth-scroll icon indicating copy to clipboard operation
jquery-smooth-scroll copied to clipboard

Issue with linking to homepage from inside page

Open Silverbug opened this issue 8 years ago • 2 comments

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.

Silverbug avatar Aug 26 '16 11:08 Silverbug

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.

kswedberg avatar Aug 26 '16 12:08 kswedberg

Do you have a working example for this one? Will this work in multiple pages?

designhash avatar Mar 02 '17 03:03 designhash