Re: ShortURLs vs BaseURL in Base HREF tags
Marty Vance <[email protected]> Thu, 13 Aug 2009 20:51:11 -0600
| Newsgroups | gmane.comp.cms.xaraya.devel |
|---|---|
| Organization | Xaraya |
| Message-ID | <[email protected]> |
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? > > -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.