If you go to http://example.com/ the 'skip navigation' link will have as its URL http://example.com/node#nav Since Global Redirect will transfer viewers to http://example.com/ and won't preserve the anchor.

Comments

mchelen’s picture

subscribing

sillygwailo’s picture

The solution here is probably just to remove the url() call altogether and be satisfied that whatever page visitors end up with will have an anchor to somewhere on the current page.

ishmael-sanchez’s picture

Status: Active » Needs review

If you are just trying to fix this on the homepage try wrapping the anchor in an if statement like if (!$is_front):

Or you could try building the anchor using the l function print l(t('skip to navigation'), '<front>', array('fragment' => 'nav'));