Bug #62556
closedproblems with links and absRefPrefix when having multiple domains per site
100%
Description
if multiple domainrecords exist on a site, the following problems occur with links:
prerequisited:
- typo3 v. 6.2.5
- a site having at least 2 configured domain-records
- absRefPrefix is set to something (e.g. absRefPrefix = /)
steps to reproduce:
1. clear frontend cache
2. open site in browser using 2nd domain
resulting problems:
1. all typolinks to internal pages are hardcoded-prefixed with the 1st domain
2. a shortcut-page pointing to an internal page redirects to the 1st domain
3. any configured absRefPrefix is ignored
4. this version is cached. as a result, when opening the site using the 1st domain, the absRefPrefix is still ignored.
expected behaviour:
1. when using different domain-records for a single site, typo3 should always stay on that domain. i believe this was the case with typo3-versions prior to 6.2. my guess is, that earlier versions created page-caches for each domain-record.
2. typo3 should always use the absRefPrefix with links - no matter via which domain the site is browsed.
on a sidenote, the behaviour is different, if the 1st domain is used on an empty cache:
steps to reproduce:
1. clear frontend cache
2. open site in browser using 1st domain
result:
- absRefPrefix is correctly used.
- the domain is not hardcoded-prefixed with the domain.
- as we now have a "correct" version in the cache, we can now visit the page using the 2nd domain correctly with relative links .... up until we browse to an uncached page, where the problem described above kicks in.