Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • hpeeters Friend
    #179945

    I have one part of my site that is SSL encrypted. When you browse to the main page under normal http all the menu links are generated correctly – including those for the SSL section (https).

    However, when you browse to the SSL section of the site all the menu links for the non-SSL sections (http) are correctly generated – except the first menu item!

    The ‘Home’ menu item (the default item that links to the front page) looks like it is ignoring the value of the ‘SSL Enabled=Off’ property within the menu item parameters screen (under the Parameters – System section). All the other menu items are either set to On/Off (none use Ignore) – which works brilliantly.

    To exclude my Joomla installation I have tested this with a default joomla template and then it is working correctly, this means that the template is ignoring the SSL Enabled=Off property. My Joomla version is 1.5.26.

    The menu module that i’m using in the template is CSS Menu.

    hpeeters Friend
    #464294

    I have solved the problem, below is the solution:

    Edit the file /templates/ja_zeolite/ja_menus/Base.class.php

    On line 87 you’ll find:

    $v->url = JURI::base();

    Replace it with the following code:

    $v->url = JURI::base();
    if ( $iSecure == 1 )
    {$v->url = str_replace('http', 'https', $v->url);}
    else if ( $iSecure == -1 )
    {$v->url = str_replace('https', 'http', $v->url);}

    That should do the trick! 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 1 voice, and was last updated by  hpeeters 11 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum