Link to an anchor on a different page

Permalink
I've got a slider on my page with a link in it pointing at a very long page with several anchor links on it - is it possible to link a single slide's caption to this second page and a special anchor, so that the link leads you directly at this page and the section where this anchor is placed?

I tried to modify this technique linking to a special page, adding the #anchorname thingy but it doesn't work...

<a href="<?=$this->url('secondpage/#anchorname');?>">


Any ideas?

 
hutman replied on at Permalink Best Answer Reply
hutman
This is really close, but I think what you need to do is this
<a href="<?=$this->url('secondpage');?>#anchorname">


So the #anchorname gets put on the end of whatever URL you are using rather than having C5 try to parse it.
mlmedia replied on at Permalink Reply
This is a ridiculous simple answer :D
But: works great, thank you very much!
Hall replied on at Permalink Reply
Hall
Hello, I'm having an issue doing the same thing. When hovered on the link it shows the correct path but doesn't take the user anywhere. When you open the link in a new tab it works perfectly, jumps to the correct anchor and all that.

Does anyone happen to know what the issue could be?