Menu items with such paths as my-page#tab3 get stripped out to just my-page
The ability exists in core menus.

Note: such items must be entered as node/555#tab3

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

doublejosh’s picture

Issue summary: View changes

add note.

doublejosh’s picture

Seems I can't get to it from theme_menu_link()

doublejosh’s picture

There are plenty of lines in this module with no regard for attributes beyond href.

EXAMPLE LINE 223
'data'=>l($leaf['link']['link_title'], $leaf['link']['href'], $leaf['link']['options']),

By carrying in the options, I'm sure there are other features that will get taken advantage of too.
This is an easy win.

Anonymous’s picture

greggmarshall’s picture

Patch from #2 resolved the problem we were having using HTML bookmarks (aka in page links, fragments, hash links) not being rendered in our megamenus.

Thanks @doublejosh.

greggmarshall’s picture

Issue summary: View changes

note.

ram4nd’s picture

Issue summary: View changes
Status: Needs review » Fixed

Seems that this is already in the code.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.