Taxonomy Menu 6-2.3 does not save paths that have query strings in them, because _taxonomy_menu_save() does not look for a query string.

This patch adds that check (strpos() for '?') and sets $item['options']['query'] and $item['link_path'] accordingly if it does find one. With those values present menu_link_save() will properly save the menu item with the query string.

In my use case, this patch allowed me to write a custom module that implements hook_taxonomy_menu_path() and creates paths that use query string.

CommentFileSizeAuthor
taxo_menu_query.patch665 bytesgreenmachine

Comments

indytechcook’s picture

Status: Patch (to be ported) » Needs review

Thanks for the patch. Has anyone else tested this?

indytechcook’s picture

Status: Needs review » Reviewed & tested by the community

Adding to next release

indytechcook’s picture

Status: Reviewed & tested by the community » Fixed

Added to 2.4-beta1.

Status: Fixed » Closed (fixed)

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

Donsov’s picture

how to make to 7x?