I would like to add a "Jump to navigation link" to the Utility menu at the top.

Setting the path to "#main-content" doesn't seem to work.

The path '' is either invalid or you do not have access to it.

If I view the source of my page the anchor is there:

Jump to navigation

Why can't I link to #main-content?

1 Answer 1


You would need to use the Menu token module in order to get the path to the current page as you first need a valid path, and then add your anchor to the path.

The tokenized path for the menu item should be something like:

  • Thanks for that. So do I put "[current-page:url:path]#footer" in the Path * field?
    – kine456
    Jan 22, 2013 at 23:15
  • Got it!!!! Thank you. I put [current-page:url:path]#main-content in the Path field. Duhhh!
    – kine456
    Jan 22, 2013 at 23:20
  • How bizzare! It works on the homepage but wipes out ALL the content on all OTHER pages :S
    – kine456
    Jan 22, 2013 at 23:26
  • Even disabling the menu link doesn't bring back the content on pages other than the homepage. I have to remove the link alltogether...
    – kine456
    Jan 22, 2013 at 23:29
  • It's the "Node from context" option under the "Method for Nodes" section that breaks all the pages other than the homepage. Why would this be the case? They all have the "<a href="#main-menu" class="element-invisible element-focusable">Jump to navigation</a>" in the source code...
    – kine456
    Jan 22, 2013 at 23:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.