Re: ShortURLs vs BaseURL in Base HREF tags

"St.Ego" <[email protected]> Mon, 24 Aug 2009 12:10:23 -0500
Newsgroups gmane.comp.cms.xaraya.devel
Organization Xaraya
Message-ID <[email protected]>
Jason wrote:
> St.Ego wrote:
>> The tradition of using &xar-baseurl; as the URL for the base tag appears
>> to break CSS when combined with ShortURLs, since the xarServerGetBaseURI
>> does not seem to take ShortURL settings in var/config.
>>
>> The only solution I've found is to make the Base URL in the theme's page
>> template static for each site that makes use of ShortURLs.
>>
>> Has anyone else stumbled on this, and is there a better solution that
>> I'm missing?
> 
> Can you give us some examples, because I'm sure what the problem is you are
> having. So long as you get all URLs through one of the Xaraya API functions,
> then everything *should* just work fine, and still be relocatable when needed.
> 
> -- Jason

The entire mixup was caused by my not declaring BaseURI in 
config.system.php, resulting in xarServerGetBaseURI returning whatever 
relative URL was passed in the browser, which became detrimental to 
ShortURL usage as applied to links and CSS.

Ya'll might have heard a loud "pop!" when I realized this; it was my 
head coming out of my ass...

-St.Ego