Project

General

Profile

Actions

Bug #63930

closed

Typolinks don't respect TCEMAIN.previewDomain in multidomain environment

Added by Uwe Trotzek almost 10 years ago. Updated about 6 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 #1

Updated by Gerrit Code Review almost 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35517

Actions #2

Updated by Gerrit Code Review almost 10 years ago

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35518

Actions #3

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35518

Actions #4

Updated by Markus Klein over 9 years ago

  • Status changed from Under Review to Resolved
  • Target version deleted (next-patchlevel)

Should be resolved with #62556

Actions #5

Updated by Uwe Trotzek over 9 years ago

Unfortunately it doesn't :(

Actions #6

Updated by Uwe Trotzek over 9 years ago

Sorry, I was too quick.

After changing the setup a little bit, it's now 90% working. The previewdomain.com domain must be placed in the same rootline as the page you want to preview. But with multiple multiple domain nodes it doesn't work anymore.

For example:

+ ROOT
- previewdomain.com

++ multidomain site 1
- multidomain1.com
- multidomain2.com

++ multidomain site 2
- multidomain3.com
- multidomain4.com

When i place previewdomain.com unter multidomain site 1 or 2 it works for the certain branch, but not for both at the same time. Is it such a setup a big edge case?

For security reasons we want to make the backend availably only via one certain domain. Every editor must use previewdomain.com to get access to the backend.

Or do I have a configuration issue which could easily be fixed?

Kind regards
Uwe

Actions #7

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF