Skip navigation

Why won't Safari respond to anchors?

7763 Views 5 Replies Latest reply: Mar 2, 2012 7:41 PM by pamfromlos angeles RSS
Ric Lobosco Level 1 Level 1 (115 points)
Currently Being Moderated
Jun 21, 2011 2:54 PM

I have anchors on my website that work fine with many versions of IE & Mozilla over the last decade, but I just learned from a friend that Safari ignores the anchors on his computer:


(At the bottom of the page are 5 links, each to a specific location on another page.)


I was told by someone else that any of these links go to the top of the proper page, but not to the respective anchor location on that page.  I checked it with my own copy of Safari (v4.1.3), & discovered the same problem.


Is this simply something that the Apple engineers thought unworthy of making compatible in Safari?  Or is there some workaround?


(I searched for other answers, they all refer to iWeb.  I currently use WordPress, and previously used other applications to build my site, but never iWeb.)




  • andyBall_uk Level 6 Level 6 (17,440 points)
    Currently Being Moderated
    Jun 21, 2011 5:04 PM (in response to Ric Lobosco)

    Hi Ric


    try updating  your code & using 'id' instead of, or as well as 'name' for the anchors. Safari handles them just fine., wikipedia has loads, for example.

  • andyBall_uk Level 6 Level 6 (17,440 points)
    Currently Being Moderated
    Jun 22, 2011 4:51 AM (in response to Ric Lobosco)

    Hi Ric


    you'd pretty much answered your own  question about 'name' & 'id' - but forget that.

    on a brief look I thought it was related, Safari dropping support for 'name' in xhtml... but looking again, it's not that at all.


    change your links to this form:  (iow, drop the www, since they're re-directed by your server anyway)


    When most browsers get a 3xx redirect response, they add any #xyz anchor to the new url

    Safari doesn't, so your '#rcl' is lost


    Seems that it was reported as a bug before now , although as usual, Safari is likely doing the 'right' thing - 1 & 2 & 3

  • pamfromlos angeles Calculating status...
    Currently Being Moderated
    Mar 2, 2012 7:41 PM (in response to andyBall_uk)

    Thank you! In Wordpress I changed the site URL in my settings and then the anchors worked in Safari.


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.