Jump to content

How to make sure PW loads https in overlays


OllieMackJames
 Share

Recommended Posts

I have a site that uses masonry style loading of summaries (with image) of underlying pages.

Whenever one image is clicked, the underlying full page is loaded in an overlay through javascript.

This all works great on http, the page is loaded fine in the overlay, but on https it does not work.

Chrome shows this:

Main origin

green dot https://www.site.com

Non-Secure Origins

red cross http://www.site.com

Apparently processwire automatically feeds http, and since this is unsecure, it is not shown.

So here is the question: How can I get/force processwire to load https?

Thanks!

 

Link to comment
Share on other sites

I try to load internal urls using ...

<a href='/path/to/page/'>path to modal</a>

... instead of ...

<a href='http://domain.com/path/to/page/'>path to modal</a>

so either way the content is loaded depending on how the request is made.

If you really want to force https you can set it in the template settings:

ssl.png

Do you have a link we can see how the url is populated?

  • Like 4
Link to comment
Share on other sites

39 minutes ago, arjen said:

ssl.png

Do you have a link we can see how the url is populated?

Thanks arjen, this did the trick, turned out couple of templates were set to http only, after I changed that tot http or https, problem was gone, so thanks again!

cstevensjr, thanks for your thoughts, I had already tried that, should have said so, but all works now, thanks!

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...