Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2162

Search Engine Optimization (Joomla! SEO) in Joomla! 5.x • SEF & Multiple Templates Breaks Menu

$
0
0
Hi

I've had this issue over multiple versions of Joomla. Just upgrading an older site to J5 and it's flagged it up again.

I have quite a complex menu structure with 4 main menu items all with their own associated extra menus and individual templates.

When clicking on main menu items this then displays a secondary menu specific to that main menu and with the specific template for that entire section. In effect a pseudo set of 4 x websites all inside one with 4 templates all loading and presenting their own menus depending on the main menu.

This works well with SEF URLS and URL rewriting turned off, however turning this on throws errors..
.....once past a certain amount of menu items the website no longer displays the article & template, instead throwing a 404 error and the call stack below.
It seems the template isn't being loaded which then breaks the entire page. (Yes the templates are all assigned correctly to relevant menu items!)

Past fixes here

Code:

https://forum.joomla.org/viewtopic.php?t=671239
e.g. in J3 adding $this->route(); to getTemplate() function in "root/libraries/cms/application/site.php" worked of most.

I've temporarily managed to get around this by using the 'Direct Alias' plugin which shortens all the url's but I'd like to see if this is fixable without plugins and using native SEF.

Any suggestions?



#FunctionLocation
1()JROOT/libraries/src/Router/Router.php:155
2Joomla\CMS\Router\Router->parse()JROOT/libraries/src/Application/SiteApplication.php:754
3Joomla\CMS\Application\SiteApplication->route()JROOT/libraries/src/Application/SiteApplication.php:244
4Joomla\CMS\Application\SiteApplication->doExecute()JROOT/libraries/src/Application/CMSApplication.php:306
5Joomla\CMS\Application\CMSApplication->execute()JROOT/includes/app.php:58
6require_once()JROOT/index.php:32

Statistics: Posted by Coziosco — Thu Jul 04, 2024 1:26 pm



Viewing all articles
Browse latest Browse all 2162

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>