We offer outstanding professional Joomla!TM extensions.

Professional Joomla! Extensions

Professional Joomla! Extensions

Blog sh404SEF bug with Joomla! native router

Newsletter

Enter your email address:



Delivered by FeedBurner

Latest on Forum

Member Login



Forum Tags


Advanced search
sh404SEF bug with Joomla! native router
Thursday, 02 September 2010 15:00
After long time of fighting it we have found it. sh404SEF support didn't answer and didn't fix this bug for months.

The issue is that if the "component's router" setting for the component is selected, you won't see the menu item alias in the URL generated by sh404SEF: instead of /forums/members/34.html you will see only /members/34.html.

You need to open the /components/com_sh404sef/sef_ext.php file and around line 279 add after
if (is_object($item) && $vars['option'] == $item->component) {
$title[] = $item->route;
}
}
the following code:
else if (!empty($title) && isset($vars['Itemid']) && !empty($vars['Itemid'])) {
$menu = & shRouter::shGetMenu();
$item = $menu->getItem($vars['Itemid']);

if (is_object($item) && $vars['option'] == $item->component) {
array_unshift($title, $item->route);
}
}

Update: sh404SEF version 2.1.4.734 isn't affected by this bug and works well!
 
 
Copyright © 2008-2012 Blogomunity.com
Trademarks and tradenames used herein are the property of their respective holders.
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. Blogomunity is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.