Language change on logo click

  • Hey guys, a small issue: If i click at the logo, the chosen language change to english. Isnt a big problem, but an small issue. So i'am right here? Thanks and greetings, Kevin

  • Most likely because template is using only base url for that link. Should be something like this, I suppose:

    $app = JFactory::getApplication();
    $menu = $app->getMenu();
    $lang = JFactory::getLanguage();
    $front_page_menu = $menu->getDefault($lang->getTag());
    $front_page_path = JRoute::_('index.php?Itemid='.$front_page_menu->id);

Log in to reply

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.