#107354Preview in multi-site not using the base url of the current tree in draft mode
Description
We have a TYPO3 instance with four different sites in it – each with their own domain. Some editors are only allowed to edit content in a draft workspace.
So let’s say we have domain1.tld, domain2.tld, … for each tree.
Now the (draft restricted) editor logs in via domain1.tld/typo3 and starts editing. The editor is not limited to one tree. It’s possible for them to edit pages/ content in every tree.
After editing something in the tree of domain1.tld, the editor decides to edit something in the tree of domain4.tld. To make sure everything looks promising, he clicks the “View webpage” button.
Now, that will just open a “white” page because the generated preview link does not use the base url of the current site. Instead it opens the preview with base url, from where the editor logged in to the system. In this example that would be something like:
instead of
—-
This only happens to editors who are locked to a draft workspace. Editors who are allowed to edit in LIVE won’t have these problems. In LIVE workspace the “View webpage” button always opens the correct base url, regardless which domain the editor used to login into the backend before.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Preview in multi-site not using the base url of the current tree in draft mode Resolves: #107354 Releases: main