SSL Labs ScoreSecurityHeaders.io ScoreHSTS Preloaded

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions

Nomad not working on multilanguage site

More
2 weeks 1 day ago #4148 by gpalmas
Hi.
I'm here to let you know about a bug of Nomad on multilanguage sites.
I investigated and found that Nomad stop working when the plugin "System - Language Filter" is enabled.

Please Log in or Create an account to join the conversation.

More
2 weeks 1 day ago #4149 by gpalmas
I investigated more about and I found this:
https://docs.joomla.org/How_to_determine_if_the_user_is_viewing_the_front_page
Then, I applied the fix in \plugins\system\nomadpro\nomadpro.php

I changed
private function getMenu() {
   $app = JFactory::getApplication();
   $this->menu = $app->getMenu();
   $this->home = $this->menu->getDefault();
   $this->current = $this->menu->getActive();
}

to
private function getMenu() {
   $app = JFactory::getApplication();
   $lang = JFactory::getLanguage();
   $this->menu = $app->getMenu();
   $this->home = $this->menu->getDefault($lang->getTag());
   $this->current = $this->menu->getActive();
}

The plugin is now working also in my multilanguage file and I suggest to include this fix in the future release of Nomad.

Hope it could be useful!

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Powered by Kunena Forum