Hi, my client has two searchble types on his website: articles and products, and he has a search module, routing to the flexicontent search view.
It seems that for products, the search results route to the correct product detail view including the correct menu item (which is a category view of the item's category)
For news articles however (everything seems to be set up the same way there), the results are routed to the default menu item, even though there is a menu item (category view) for all news articles. In both cases, there is a categoryslug and item slug available.
In the flexicontent search result view, I see you are using this line for the routing:
Code:
$item_link = JRoute::_($result->href);
I have adapted that in an override to the following (only for flexi items, $item_link will equal $flexi_link):
Code:
$flexiSlug = $result->slug;
$flexiCatSlug = $result->categoryslug;
$flexi_link = JRoute::_( FlexicontentHelperRoute::getItemRoute($flexiSlug, $flexiCatSlug) );
This way it works fine. Is there a reason why you don't do this, or a configuration that does the same with the standard Routing?
I ask because for sleek updating routine, I would like to avoid overrides if possible.
Terry