Jump to content

Modal preview link not https, thus fails to load


Recommended Posts

Posted

I have some sites that have ssl certificates and I'm doing a redirect using the .htaccess file. I have noticed that processwire's httpUrl() fails to render the https:// schema in the Moda/Panel preview in the Page Edit screen and renders them as normal http, thus making them fail to load because of mixed origins.

What I have noticed is that $config->https is always null on my site, and thus httpUrl() fails to set the schema as "https". I also tried setting the template to HTTPS only (to force true on $config->https, and as a result force the https schema on httpUrl()) but then I get into the trouble that all pages with that template get "too many redirects" error when trying to load them. Tried removing the htaccess redirect and leave the PW one with no success. 

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
  • Recently Browsing   0 members

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