• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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

#1
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.
 

t0daY

Active member
#2
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?