|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
ShortURLs vs BaseURL in Base HREF tagsThe 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? -St.Ego _______________________________________________ Xaraya_devel mailing list Xaraya_devel@... http://xaraya.com/mailman/listinfo/xaraya_devel |
|
|
Re: ShortURLs vs BaseURL in Base HREF tagsSt.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? > > -St.Ego The other solution is to always use absolute URLs, such as those generated by xarModURL() and other API functions. If the short URL scheme looks like a directory path, the browser can't tell that it isn't a directory path, and will tack relative paths onto it, and will request files from a location other than where they are. _______________________________________________ Xaraya_devel mailing list Xaraya_devel@... http://xaraya.com/mailman/listinfo/xaraya_devel |
|
|
Re: ShortURLs vs BaseURL in Base HREF tagsSt.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 _______________________________________________ Xaraya_devel mailing list Xaraya_devel@... http://xaraya.com/mailman/listinfo/xaraya_devel |
|
|
Re: ShortURLs vs BaseURL in Base HREF tagsJason 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 _______________________________________________ Xaraya_devel mailing list Xaraya_devel@... http://xaraya.com/mailman/listinfo/xaraya_devel |
| Free embeddable forum powered by Nabble | Forum Help |