Hello,
On my main menu I have a link to an article. I retrieve the same article in the universal fc module, I have "show readmore" activated and "Force menu item" is set to "No", the generated link isn't placing "Itemid=" in the url and should.
In helper.php:
Code:
$lists[$ord]['standard'][$i]->link = JRoute::_(FlexicontentHelperRoute::getItemRoute($row->slug, $row->categoryslug, $forced_itemid, $row).(($method_curlang == 1) ? "&lang=".substr($row->language ,0,2) : ""));
Consulting the getItemRoute method, it tires to find if any menu item has a link to the article.
Code:
if ($menuitem = FlexicontentHelperRoute::_findItem($needles)) {
$link .= '&Itemid='.$menuitem->id;
return $link;
}
I found that removing the "$row" parameter it generated the proper link with the correct Itemid.
if "$row" is passed in the getItemRoute method, then in route.php
Code:
// These will be unset and not used needles lookup loop
$needles['_item'] = $item;
I'm not sure if "$row" is really needed.
Please check if there is an issue here.
I'm using Joomla 3.3.3 and FLEXIcontent version 2.2.0 r1932.
Update:
Just a note, on my site I have multi language support, if I disable the System - Language Filter plugin, the link is properly generated. I'm also using falang.