0

Im trying the link to an anchor on another page which is possible with html but when I try in EE it is not working as it adds the last segment of my current page, like so:

Im linking from this page:

http://www.mysite.com/contact

The link from this page is:

http://www.mysite.com/#bottom

but the link gives this result

http://www.mysite.com/contact#bottom

It is adding the last segment of the current page??

3
  • What does the outputted html look like? It should be <a href="/#bottom">.
    – Bryan
    Nov 6, 2014 at 19:43
  • How do you mean, The actual link shows as: mysite.com/#bottom
    – user3765
    Nov 6, 2014 at 20:01
  • 3
    Example code? Expect it's because you're not targeting root - <a href="/#bottom">...</a> Nov 6, 2014 at 20:55

2 Answers 2

0

I would need to see the anchor link you have at the moment but try this.

<a href="/#bottom">Your link here</a>
0

If Chris Barber-Riley's syntax doesn't work you could also try:

<a href="{site_url}#bottom">Your link here</a>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.