Please see this comment for more detail:
http://drupal.org/node/106821#comment-1706982

Basically, it seems there are cases where people would like to use named anchors in normal menus and at present the workaround for this is some code in template.php to catch any menu links with a '#' in them and re-write them using the l() function (which does support 'fragments' in URLs with an additional parameter). Seems to me that rolling this in to hook_menu() so there is a 'fragment' parameter there too would be sensible.

If you can already do fragments with the menu system then the documentation should be improved, as no one seems to be able to find anything about it, but that's another issue. =)

Comments

sun.core’s picture

Version: 7.x-dev » 8.x-dev
valthebald’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

You can add menu items containing fragments in D8 (checked with the latest 8.x)