If you have a problem with Joomfish, where you click on the language picker to choose the secondary language (Not default language) and the pages translate, but when you click on the homepage menu link and the page reverts to the default language.
Open modules/mod_mainmenu/helper.php and change:
Code:
$tmp->url = JURI::base();
to:
Code:
$tmp->url = str_replace(array($tmp->route.'/', $tmp->route), '', JRoute::_( $tmp->url ));
Thanks for the tip
Anyway, I don’t know if this is due to – ” – and – ‘ – encoding or a bad copy&paste but the original code wasn’t working.
This one works:
$tmp->url = str_replace(array($tmp->route.’/', $tmp->route), ”, JRoute::_( $tmp->url ));
Cheers,
Marco
Work fine , thanks for all!!!!
Brilliant! Thanks!
Works just fine….Thanks a lot for sharing.