Theme::css vs. HTML_PATH_THEME_CSS

Post Reply
User avatar
Torsten_Kelsch
Legend Bludit
Posts: 263
Joined: Thu Aug 27, 2015 10:24 pm
Location: Germany
Has thanked: 4 times
Been thanked: 2 times
Contact:

I found out that the following code outputs http:// etc., even if the website runs on https:

Code: Select all

Theme::css('style.css');
The result is like:

Code: Select all

<link rel="stylesheet" type="text/css" href="http://www.example.com/bludit/bl-themes/example/css/style.css">
This code only outputs a relative path, so that there are no problems with the protocol:

Code: Select all

<link rel="stylesheet" href="<?php echo HTML_PATH_THEME_CSS ?>style.css">
The result is like:

Code: Select all

<link rel="stylesheet" href="/bludit/bl-themes/example/css/style.css">
Last edited by Torsten_Kelsch on Wed Jun 28, 2017 1:43 pm, edited 1 time in total.
On Error GoTo Bed
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Thank you for the remarks!

Can you please open an issue ticket for this at

https://github.com/dignajar/bludit
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Torsten_Kelsch
Legend Bludit
Posts: 263
Joined: Thu Aug 27, 2015 10:24 pm
Location: Germany
Has thanked: 4 times
Been thanked: 2 times
Contact:

Done.
On Error GoTo Bed
Post Reply