Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Mixed Content error - theme://

Started by Muut Archive 10 years ago · 2 replies · 362 views
10 years ago

Hi
I'm getting mixed content errors and it seems to only be coming from images I've linked using theme:// e.g.

TWIG
<link rel='shortcut icon' href="{{ url('theme://images/favicon/favicon.ico', true) }}" />

Where can I set what theme:// equals and change it to https?

I know I can do a htaccess http -> https redirect but I thought updating this theme variable might be a cleaner solution

10 years ago

I've seen in some situations absolute URLs being "forced" to http. You can turn off absolute URLs in the system configuration to use relative URLs, which will eliminate this problem.

10 years ago

Always best to use relative URLs if it all possible. Also absolute URLs should use the URL that you entered teh site with. So if you access the site with https://blah.com then links built as absolute, should also contain that same https://blah.com in their URLs.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago