Closed mustofa-binary closed 4 years ago
i tried to use the plugin like this in gatsby-config.js
{ resolve: 'gatsby-plugin-anchor-links', options: { offset: -100, }, },
and
<AnchorLink to="/#how-it-works" stripHash>How it works</AnchorLink> <AnchorLink to="/#about-us" stripHash>About us</AnchorLink> <AnchorLink to="/#our-clients" stripHash>Testimonials</AnchorLink>
when run in local it works, smooth scroll also works, but when i deploy to netlify, eveytime i click on the link, it just goes to the top page, if i dont use stripHash, it will just go to the target, no smooth scroll.
Can you share a production link & repo?
I am facing a similar issue you can check it out here - https://www.loginradius.com/docs/developer/api
i tried to use the plugin like this in gatsby-config.js
and
when run in local it works, smooth scroll also works, but when i deploy to netlify, eveytime i click on the link, it just goes to the top page, if i dont use stripHash, it will just go to the target, no smooth scroll.