Orchard and HTTPS

Topics: Administration, Core, General, Troubleshooting
Feb 17, 2012 at 3:10 AM

Hi everyone,

I just moved an Orchard site into an HTTPS environment, for the first time tonight. I am getting those silly mixed-content errors (http content on https page).

I see that there are a few things in Orchard that reference directly to http:// pages (like all of thelinks, on the main page, on the dashboard.

What are you all doing to overcome this?

Thanks,
Will

Feb 17, 2012 at 4:19 PM

I had the same problem and just manually changed it to https.  It would be nice if that wasn't necessary.  

Coordinator
Feb 17, 2012 at 6:29 PM

Can you give precise files which contain such references ? 

Feb 18, 2012 at 12:02 AM

I recently had to address this issue on a (non orchard) site & found out that you can omit the protocol entirely, it seems to work well:

http://stackoverflow.com/questions/550038/is-it-valid-to-replace-http-with-in-a-script-src-http

Coordinator
Feb 18, 2012 at 12:35 AM

Absolutely, protocol-less is the way to go if you have to specify an absolute url.

Feb 21, 2012 at 4:07 AM

The admin dashboard has all http links coded in the view.
The other points were in the Theme.

So, what happens when there is no available https version? Will protocol-less links break or will the user be warned like normal?

Core/Dashboard/Admin/Views/Index.cshtml

Thanks,
Will