Project

General

Profile

Actions

Bug #62556

closed

problems with links and absRefPrefix when having multiple domains per site

Added by Gerald Buttinger over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-10-30
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #24389: speed up typoLink function by caching domain recordsClosedSteffen Gebert2010-12-22

Actions
Related to TYPO3 Core - Bug #63930: Typolinks don't respect TCEMAIN.previewDomain in multidomain environmentClosed2014-12-16

Actions
Related to TYPO3 Core - Feature #57526: provide magic keyword "_BEDOMAIN_" for TCEMAIN.previewDomain configurationClosed2014-04-02

Actions
Actions

Also available in: Atom PDF