ElkArte Community

Elk Development => Feature Discussion => Topic started by: emanuele on May 18, 2015, 03:12:15 pm

Title: Themes urls
Post by: emanuele on May 18, 2015, 03:12:15 pm
Lurking at sm.org, I read the report of a user that was having problems with the theme switching between http and https.

Without entering into the specific details, what I'm wondering is: why do we have to define the full URL for themes not on a "special" (e.g. with the assets stored on another domain) setup?
Why not simply store the relative url and append it to $boardurl?
That would also cut down on maintenance in case of address changes[1], one less parameter to fix.
Yeah, okay, not so frequent...mostly for established sites, a bit more frequent for new sites that start maybe on 3rd level domains at free services and then have to either another free service or a proper domain
Title: Re: Themes urls
Post by: Joshua Dickerson on May 18, 2015, 05:02:51 pm
The only thing you need the full URL for is for emails. Other than that, I don't see a need to not use a relative URL. I think I wrote about this somewhere on SMF.
Title: Re: Themes urls
Post by: emanuele on May 18, 2015, 05:23:53 pm
That as well, but I was a bit shy to propose to go that far. :P
Title: Re: Themes urls
Post by: Joshua Dickerson on May 19, 2015, 06:26:52 pm
Why not? Browsers now change it to a fully qualified URI when you copy it
Title: Re: Themes urls
Post by: meetdilip on May 19, 2015, 06:57:03 pm
I am afraid I didn't follow.
Title: Re: Themes urls
Post by: ahrasis on May 19, 2015, 08:46:34 pm
Actually, I have a problem with this too using Multi Forum Addon. I think I might have edited the index.template.php to make sure all themes work accross all domain urls.