I'm currently working on developing a style guide for a project and one of the features I would like to implement is a basic click behavior on anchor links, allowing them to smoothly scroll to the corresponding section on the page.
For instance:
<a href="#section"></a>
This link should smoothly bring the user down to:
<div id="section"></div>
However, in Aurelia, the default functionality treats links as routes which can make it difficult to achieve this smooth scrolling effect. Every time I try to create an internal link, it automatically redirects me to an external page instead.
If anyone has encountered this issue before and knows how to solve it, any help or advice would be greatly appreciated. Thank you!