Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with linking to homepage from inside page #98

Open
Silverbug opened this issue Aug 26, 2016 · 2 comments
Open

Issue with linking to homepage from inside page #98

Silverbug opened this issue Aug 26, 2016 · 2 comments

Comments

@Silverbug
Copy link

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.

@kswedberg
Copy link
Owner

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.

@designhash
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants