Bug #63930
closedTypolinks don't respect TCEMAIN.previewDomain in multidomain environment
0%
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 ;)
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
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
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
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
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