I see that in new versions of VM categoryId can't be zero.
Early I created menu item = Virtuemart - category layout - top level (categoryId = 0). And this item was my page (with itemId) for result of search.
But now this doesn't work, because:
1) search in VM - categoryId must be "-1"
2) if($categoryId == 0) $categoryId = getLastVisitedCategoryId()
3) I can't create menu item for "virtuemart" - "category layout" - categoryId=-1
So my question: how I can create menu item for result of search?
Menu type - External URL?
Is menu type External URL supported by JRoute?
Did you try my advice? Could I see live?
External URL hasn't alias, pagetitle, meta and it's a problem.
Module/template assign works.
I don't understand why categoryId = LastVisitedCategoryId in new versions. I used categoryId == 0 as page for result of search. I don't know what i can do now.