# Anchor Links with Safari

**URL:** <https://forum.kirupa.com/t/anchor-links-with-safari/280909>\
**Category:** web dev\
**Created:** [February 2, 2009, 10:43pm UTC](https://forum.kirupa.com/t/anchor-links-with-safari/280909 "2009-02-02T22:43:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbig](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@jbig](https://forum.kirupa.com/u/jbig)\
**Post date:** [February 2, 2009, 10:43pm UTC](https://forum.kirupa.com/t/anchor-links-with-safari/280909/1 "2009-02-02T22:43:47Z")

</div>

I’m having trouble making my anchor links work in Safari (both FF and IE work fine). I have a few PHP pages with a list of school classes, each with unique IDs. For example, I have a page for the beginning classes, another page for the intermediate classes, and another for advanced. Within each page are descriptions of each class and are given unique ID’s:

```auto
<a name="LISTNAME" id="LISTNAME">Class Name</a>

```

My main classes page links to all classes within their individual page… so I want some links to link directly to the specific area where that class is on it’s PHP page. The links are as follows:

```auto
<a href="intermediate_classes.php#LISTNAME">Class Name</a>

```

However, Safari is not reading the anchor and only loading the page’s regular URL, not the extension to the anchored area. What happens is when I click on the link, I can see the address bar read the full URL with the #LISTNAME but will eventually remove the anchor extension and just load intermediate\_classes.php. Even when I copy and paste intermediate\_classes.php#LISTNAME directly to the address bar, Safari still removes the anchor extension.

Any help with this?
