fix: don't scroll if the url points elsewhere (#268)
fix: don't scroll if the url points elsewhere (#268)

If the element has the `data-scroll` property, but also doesn't link internally, the URL doesn't click through anymore (i.e. broken). This change checks that the link clicked points to an internal URL.

Note that I'm unsure how might affect the support for smooth scrolling into different URLs (that includes the hack that reads the `window.location.hash`).
cferdinandi/smooth-scroll,cferdinandi/smooth-scroll