Joomal mainmenu compent only gives URL's as/page, and not http://www.site.com/page . To get round this, open the mainmenu/helper.
in the switch ($tmp->browserNav) , change instances of
$data = '<a href="'.$tmp->url
to
$data = '<a href="' . JFactory::getURI()->toString(array('scheme', 'host')) . $tmp->url
note that you cant just use 'JURI::base();' , as this adds a trailing slash to the end of the base url, so the above will work fine instead.
Then, slightly further up, change the following to remedy the potential problem on the homepage link....
// Handle SSL links
$iSecure = $iParams->def('secure', 0);
if ($tmp->home == 1) {
$tmp->url = JURI::base();
to
// Handle SSL links
$iSecure = $iParams->def('secure', 0);
if ($tmp->home == 1) {
$tmp->url = '';
Last changed: Mar 11 2011 at 3:42 PM
Back