XF 1.5 Make anchor links work without {$requestPaths.requestUri}


Can't seem to figure out how to make anchor links work without {$requestPaths.requestUri}.
There's this solution: <a href="javascript:;" onclick="window.location.hash = 'url';">link</a>
but it won't work with an overlay link I'm implementing.

Isn't there a way for me to setup xenforo so anchor links work as is? So simply <a href="#anchor"> will link to website.com/forums/thread/alksjfoiasdj/#anchor instead of website.com/forums/#anchor .

Please help, spent days on this and can't seem to figure it out.


Active member
Have kinda the same problem. Trying to implement a simple anchor in a static page. But it does not work as intended. It jumps to much down or not at all. Any tips how to solve that?