Anchor links not working properly in Joomla site

Discussion in 'Joomla' started by Webed4it, Sep 3, 2011.

  1. #1
    I am trying to use anchor links one one of my pages. I have added the anchor like this:

    <a name="anchorname"></a>
    Code (markup):
    and linked to it from the same page like this:

    <a href="#anchorname">Anchor Name Link</a>
    Code (markup):
    But when I click the link, instead of jumping to the right location on the page, it takes me to the home page of the website.

    I am using Joomla 1.5 and have SEF links enabled and I'm using ARTIO JoomSEF SEO extension, if that helps.

    When I hover over the link the url in the status bar shows domain.com/#anchorname instead of domain.com/my-page/#anchorname

    I have tried to use "my-page/#anchorname" in the link which works but causes the page to reload. I don't want the page to reload.

    How can I correct this?
     
    Webed4it, Sep 3, 2011 IP
  2. schlogo

    schlogo Well-Known Member

    Messages:
    1,615
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    140
    #2
    can we see the page?
     
    schlogo, Sep 5, 2011 IP
  3. Webed4it

    Webed4it Peon

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Webed4it, Sep 5, 2011 IP
  4. lamvt

    lamvt Active Member

    Messages:
    153
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Did you use HTML funtions of editor?
    joomquery dot com Joomla tutorials, free joomla templates.
    if you need a hand, contact us
     
    lamvt, Sep 8, 2011 IP
  5. schlogo

    schlogo Well-Known Member

    Messages:
    1,615
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    140
    #5
    are you using joomsef?
     
    schlogo, Sep 8, 2011 IP