Not working with SSL Redirect (by Yireo.com) extension

rvillela
12 years, 4 months ago
I am not sure if it is MobileJoomla or the Elegance template, but when SSL Redirect is enabled, all SSL redirected pages do not work when clicking on the menu. If a page is flagged as SSL secure (like Virtuemart) and I click the menu to that secure page, I simply get a "Error Loading Page" error on the mobile site.
This happens both on the phone as well as a PC with the device=iphone query string. The plugin works perfectly fine in Standard Mode.

I have MobileJoomla and the Elegance Template installed along with SSL Redirect.
When SSL Redirect is enabled, all SSL redirected mobile pages do not work when linked by a menu.

- The plugin works great in the non-mobile mode
- If a page is added to the Custom SSL-Pages and I click a menu to that secure page, I simply get a "Error Loading Page" error while in mobile mode.
- While in Mobile mode, I can manually type in the url with https and it works find
- When I am in one mode (http or https) and try to click on a link that changes the http mode, it will not load the page.
dryabov
12 years, 4 months ago
What Elegance version do you use? And what is URL of your site?
rvillela
12 years, 4 months ago
Elegance 1.1.3
The site is test.NutritionNetwork.com
rvillela
12 years, 4 months ago
Sorry, I do not have the SSL certificate on the test environment, please try www.NutritionNetwork.com

Please use the following credentials:
User: jdoe
Pass:test123
After login, click on "Welcome Jane Doe", select the My Account Menu and try to click on My Cart

At this point, SSL Redirect tries to redirect to https but fails with "Error loading page"
If you manually type in the URL: www.nutritionnetwork.com/my-cart, SSL Redirect will redirect to the https mode correctly.
But now that you are in https mode and you try to click on a non-https link, SSL Redirect will try to switch back to http. But again this fails.
dryabov
12 years, 4 months ago
Do you set "Secure: On" in menu item settings or use htaccess-based redirect?
rvillela
12 years, 4 months ago
Thank you very much! I was not aware of the setting in the menus to select SSL. Once I did this, Mobile is now working properly. Thanks again the the resolution.
americord
11 years, 6 months ago
There seems to be a bug with Ajax navigation turned on and SSL redirection.

Our menu items are all non-SSL, but we have a form page that does require SSL. When you go to that SSL page, the menu items change to https:// links (since they're now on an SSL page). The SSL redirect plugin should handle these such that www.mydomain.com is redirected to www.mydomain.com.

It does this through a redirect that the Ajax navigation does not seem to handle properly. Once I turn off Ajax navigation in the Mobile Elegance theme, the menu items redirect properly.

Any thoughts on this?
dryabov
11 years, 6 months ago
americord, could you enable AJAX and PM me link to that SSL page?
americord
11 years, 6 months ago
cordadvantage.com/request-info

If you could take a look and let us know, that would be great. I'd like to have it working for now.

Thanks again.
dryabov
11 years, 6 months ago
Try to add following code to templates/mobile_elegance/js/custom.js (create if doesn't exist and note that _custom.js is just a sample file):

jqm.ajaxSetup({
complete: function(jqXHR){
if(jqXHR.status==0 && jqXHR.statusText=='error' && this.type=='GET'){
location.href = this.url;
}
}
});
1

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.