Hello,
I have a question about this snippet (before I try it) - but first some background information:
This client’s site uses a template with a base url of
http://www.sitename.com/, and I wanted just one page to have SSL, so I made that page with the same template, except with
https://www.sitename.com/ as the base url. It works fine if you go directly to that page by typing in the URL, but if you get to that page through a link from a non-SSL page, it loads a version of this page which is non-SSL, and that’s not good, because this page is supposed to take credit card information in a form.
I wouldn’t mind just making the whole site SSL, but I am having a lot of trouble with that, because I can’t get every single element to load from a secure location, so every time a user goes to the page, they get an alert that says, "This page contains both secure and nonsecure items," and that gets annoying after a while.
Would this snippet cause the one page to always load the https version?
I guess if I have to, it’s no big deal to make links to this particular page absolute - except in the main navigation, which uses wayfinder. I wonder if there’s a way to override a relative link in the wayfinder menu and make it absolute? Guess that’s a question for the wayfinder thread. Just thinking "out loud" so to speak.