SH404SEF – Joomfish: Secondary Language homepage link does not translate

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 ));

Share

4 thoughts on “SH404SEF – Joomfish: Secondary Language homepage link does not translate

  1. 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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam protection by WP Captcha-Free