Skip to main content
Topic: Themes urls (Read 2053 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Themes urls

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
Bugs creator.
Features destroyer.
Template killer.

Re: Themes urls

Reply #1

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.

Re: Themes urls

Reply #2

That as well, but I was a bit shy to propose to go that far. :P
Bugs creator.
Features destroyer.
Template killer.

Re: Themes urls

Reply #3

Why not? Browsers now change it to a fully qualified URI when you copy it

Re: Themes urls

Reply #4

I am afraid I didn't follow.

Re: Themes urls

Reply #5

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.