I use 3.8.7 and I get the worong URL by JRoute::_.
My menu use the url: http://joomla.local/joomla/admin/tablets
but with:
Code: Select all
$menu = JFactory::getApplication()->getMenu();
$item = $menu->getActive();
error_log('URL:' . JRoute::_($item->link));
it add one /tablets to much.
is this my mistake?
Thx T.