As we know, JQuery mobile has problems with redirects from server.
What is the best way to have only one secured page on site?
Here is scenario:
- User goes to root of site ->
- User goes to payment page ->
- <- Server redirects user to https payment page #On this step we can
use data-ajax=false - User at payment page goes to any other page -> #We should have all
links on page with data-ajax=false? Looks terrible. What is the proper
way to get user out from this page to unsecured pages?
UPD This question is not only about mobile sites, it’s about all sites, that use ajax intensively.
One way to handle this is to detect the failed page load that is inherent to making a cross-domain AJAX call and attempt to change the protocols. AJAX and page transitions won’t work using this approach, however, it prevents you from having to litter your site with
data-ajax=falseattributes. This works in both directions (i.e. both to and from HTTPS).