Project

General

Profile

Actions

Bug #63930

closed

Typolinks don't respect TCEMAIN.previewDomain in multidomain environment

Added by Uwe Trotzek over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-12-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

Since https://forge.typo3.org/issues/30889 you can define a certain domain for WEB->View and PAGE->View

by setting e.g.
TCEMAIN.previewDomain = previewdomain.com

Unfortunately this isn't respected in the rendered HTML preview when you have a multidomain setup.

Steps to reproduce:
  • Open backend with backenddomain.com
  • Setup multidomain site
    • multidomain1.com
    • multidomain2.com
  • Configure this PageTSConfig on the root page.
    • TCEMAIN.previewDomain = previewdomain.com
  • Open the preview of a page under e.g. multidomain1.com

The preview will correctly be opened with previewdomain.com but all generated links are prepended with with multidomain1.com. This causes some problems for example when one closed the backend for certain domains for security reasons.

As I figured out the ContentObjectRender leads to the problem as it simply uses:

$targetDomain = $GLOBALS['TSFE']->getDomainNameForPid($page['uid']);

I'm trying to develop a patch for this. But maybe someone hint or veto ;)


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #30889: It isn't posible to set an alternative Domain for PreviewClosed2011-10-13

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

Actions
Related to TYPO3 Core - Bug #62556: problems with links and absRefPrefix when having multiple domains per siteClosed2014-10-30

Actions
Actions

Also available in: Atom PDF