Problems Requiring HTTPS and Preview

4 posts by 3 authors in: Forums > CMS Builder
Last Post: October 10, 2017   (RSS)

By kevbarker1 - October 9, 2017

I am having an issue I hope someone can help me with. 

I am requiring HTTPS for CMSB (Only allow users to login via secure HTTPS connections). It is working fine. However when a user clicks on a Preview button for a section, the page preview link is sent as HTTPS as well and the CSS, JS, and other related files are evidently not being linked. As a result the page is straight HTML with no styling. What do I need to do here??

Your help is appreciated!


By Dave - October 10, 2017

And to add to what Zicky shared, you can actually remove the http: or https: part (called the "scheme") and use an url like this: 

<link href="//" rel="stylesheet" />

And it will use whatever scheme (http: or https:) you're already on.

Let me know if that solves it or if you continue to have issues. 

Dave Edis - Senior Developer

By kevbarker1 - October 10, 2017

Thanks Dave and Zicky. I tried removing the scheme and that solved the problem. I was going to use https only on the parts of the site that needed security (forms) but ended up using it throughout anyway. 

Thanks for responding. It helped me solve things.