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
This entry was posted in Joomla, SF404SEF and tagged , . Bookmark the permalink.

4 Responses to SH404SEF – Joomfish: Secondary Language homepage link does not translate

  1. Marco says:

    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

  2. Work fine , thanks for all!!!!

  3. Eva says:

    Brilliant! Thanks! :)

  4. Arihant says:

    Works just fine….Thanks a lot for sharing.

Leave a Reply to running network Cancel 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