Anchor links not working in Firefox So I know this might not necessarily be a "Drupal" issue, but because I am using Drupal and this issue only happens in my Drupal site, I'm wondering if it has something to do with the way Drupal handles URL's.

SO, I have an anchor on my home page like so:

&lt;a id="we_know_digital" name="we_know_digital"&gt;&lt;/a&gt;


There is a link in the main navigation that is on all pages to this anchor like so:

&lt;a href="/#we_know_digital"&gt;We Know Digital&lt;/a&gt;


So this works in all browsers, including Firefox, when I am ALREADY on the home page, however, if I am on one of the internal pages and then click this link, it takes me to the homepage, but does NOT go down to the anchor in Firefox. It does go down to the anchor in Chrome and Safari and other browsers, but for some reason it wont in Firefox, even in the latest version. The reason I believe this has something to do with the way Drupal handles URL's is that if I create a standalone plain vanilla HTML page outside of Drupal and replicate the same thing where I have 1 page that has the link and the anchor and then a separate page that has the link to the first page and the anchor, it works as expected in Firefox where it goes to the first page and then down to the anchor. It's only when I try to do this within Drupal, that it stops working. Anyone have any idea what might be going on here? I'm thinking it has something to do with the URL re-writing. ???
&lt;a id="we_know_digital" name="we_know_digital"&gt;&lt;/a&gt;



The empty anchor target might be the problem. The browser may be having a "problem" fixating the empty (non-visual) target as the page loads.

Ideally, you would attach the id to something. eg. an Hn tag.

The name attribute on the anchor is deprecated in HTML5 if that is of concern. Reference: https://www.w3.org/TR/2008/WD-html5-diff-20080610/#absent-attributes