[TYPO3-core] RFC #[7937]: [Feature]: [stdWrap/Hook for baseUrl]
Bernhard Kraft
kraftb at kraftb.at
Sat May 16 15:35:33 CEST 2009
Martin Kutschker wrote:
> Bernhard Kraft schrieb:
>> Nico de Haen wrote:
>>
>>> Problem:
>>> in certain circumstances baseUrl should be changed (if different
>>> domains should be handled), but it should not be possible to change it
>>> to ANY domain (as it did in former times with baseUrl = 1)
>> Question:
>> Why do you not simply use [conditions] to set the baseURL to one of the
>> allowed values.
>
> It's a bit annoying to have to fiddle with constants. Maybe baseUrl=1
> could use the current domain selected by sys_domain.
This solution, so only domains from sys_domain get used if baseUrl=1 is
set is ok for me ... but you have to take care of caching.
If the cache is cleared - and one person visits the site via
"www.alternateurl.com"
and the site get's cached (and the <base> url tag is set to "www.alternaturl.com")
then another visitor, visiting the site afterwards via:
"www.realcompanyurl.com"
will have all links pointing to "alternaturl.com" - which is probably not the
wanted behaviour.
So if this solution is chosen, I think it should always use the first sys_domain
record (in means of sorting) from the current root-page.
greets,
Bernhard
--
Freiheit ist immer Freiheit des Andersdenkenden.
Rosa Luxemburg, 1871-1919
--------------------------------------------------
www.think-open.at
More information about the TYPO3-team-core
mailing list