Silverstripe Version 4.2.2
When I use hash anchor links like < a href="#1" >Link< /a > SilverStripe rewrites the link to the full path like < a href="/page/#1" >Link< /a >. This gives problems with some functions like smooth scrolling. To prevent this rewriting I added “rewrite_hash_links: false” in the yaml file, so my links are now just < a href="#1" >Link< /a >.
But the strange thing is that when clicking it goes to the home page / even there is no slash before the hash. Normally it should stay on the current page, but I guess something in SilverStripe sends it to home.
Any ideas to fix this?