Page 1 of 1

Gold R11 - Strange behavor using SSL (Secure All Pages)

Posted: Tue Oct 13, 2015 10:46 pm
by Odettes
Hi!

I use a custom folder(I don't use App_Themes folder at all) in my root folder to store css, fonts and js files.
In my Layouts file I make a normal reference to my css file like this:

Code: Select all

<link href="/retail/css/style.css" rel="stylesheet" type="text/css" />
This work great in previous version of Gold, but with the new feature SSL "Secure All Pages" checked under /administration/Configure/Security/System Settings something goes wrong.

Instead of importing my css file it imports a generated text-file that looks like this:

Code: Select all

<html>
<head>
<title></title>
<!-- <script language="javascript">window.location.replace("http://beta.traileronline.se/retail/css/style.css");</script> -->
</head>
<body></body>
</html>
If I disable "Secure All Pages" it works like normal.

What to do?

Re: Gold R11 - Strange behavor using SSL (Secure All Pages)

Posted: Wed Oct 14, 2015 1:44 am
by mazhar
What happens if you update the stylesheet include to have absolute URL with HTTPS in it? Like this

Code: Select all

<link href="https://beta.traileronline.se/retail/css/style.css" rel="stylesheet" type="text/css" />

Re: Gold R11 - Strange behavor using SSL (Secure All Pages)

Posted: Wed Oct 14, 2015 12:30 pm
by NC Software
Try a leading //

Re: Gold R11 - Strange behavor using SSL (Secure All Pages)

Posted: Thu Oct 15, 2015 1:33 am
by Odettes
mazhar wrote:What happens if you update the stylesheet include to have absolute URL with HTTPS in it? Like this

Code: Select all

<link href="https://beta.traileronline.se/retail/css/style.css" rel="stylesheet" type="text/css" />

Exact same result, something is wrong.

Re: Gold R11 - Strange behavor using SSL (Secure All Pages)

Posted: Thu Oct 15, 2015 5:10 am
by Katie
Did you also try Neal's suggestion? leading //
I use a custom folder(I don't use App_Themes folder at all) in my root folder to store css, fonts and js files.
I'm not sure why you decided to eliminate the App_Themes folder, but these are scenarios that we don't test during final QA. I would think that it should work though, especially with a fully qualified URL. Are you sure this isn't some other issue?

Re: Gold R11 - Strange behavor using SSL (Secure All Pages)

Posted: Thu Oct 15, 2015 7:55 am
by rmaweb
In your style.css file that you are linking via https, are there any image, icon, font, etc links in that file? If so, are they being called with a //?

The // allows the browser to determine whether to load the file as http or https depending on the current situation.

Re: Gold R11 - Strange behavor using SSL (Secure All Pages)

Posted: Fri Oct 16, 2015 5:53 am
by Odettes
Katie wrote:Did you also try Neal's suggestion? leading //
I use a custom folder(I don't use App_Themes folder at all) in my root folder to store css, fonts and js files.
I'm not sure why you decided to eliminate the App_Themes folder, but these are scenarios that we don't test during final QA. I would think that it should work though, especially with a fully qualified URL. Are you sure this isn't some other issue?
Yes, I tried that to.
If I enable SSL but skipp "Secure All Pages" it works fine so it looks like the problem is there.

Re: Gold R11 - Strange behavor using SSL (Secure All Pages)

Posted: Wed Oct 21, 2015 9:36 am
by Odettes
Any idea what to do?

Re: Gold R11 - Strange behavor using SSL (Secure All Pages)

Posted: Thu Oct 22, 2015 6:36 am
by mazhar
Odettes wrote:Any idea what to do?
Try adding your custom directory containing CSS in SSL.config under secure pages node like this

Code: Select all

<directory path="your_css_directory_name_here" />
and try again.