Changed domain handling on "View webpage" from backend causes problems
Due to fix for Bug #30892:
This new behaviour causes problems for us.
For a long time (due to bug or not) the domain currently used in the backend was used for loading a page with "View webpage". Due to the change in getViewDomain, the first domain from the domain records is now used.
On multi-site installations we use a generic domain for working in the backend and this should be consistent with the domain used for viewing the page from the backend.
We now have to patch the core or completely change handling.
Ideal would be to make this configurable !!!
Updated by Sybille Peters about 9 years ago
use case #2: www.domain1.de, www.domain2.de, www.domain3.de are all hosted on a single TYPO3 installation. Some users have access to only one domain, some have access to all domains. In this case, it is best to access the backend via a common domain e.g www.alldomains.de.
If this is not made clear, I am happy to elaborate via private email.
Updated by Ruth Schwarzenbach almost 9 years ago
We have the same problem. We have an "intern" domain for the backend and several domains for the frontend user and now every time when we view in backend the domain from domain record is taken and there're a lot of redirects...We would prefer the baseurl.
Updated by Frank Gerards about 6 years ago
any news on that ? The "take the first domain record" mechanism kicks in, when previewing a page in another domain node in a multidomain env.
BUT: It seems that the userTSconfig settings are NOT present, when previewing a hidden page in another domain node. Therefore, the user is sees a 404 page in the frontend.
Updated by Wouter Wolters almost 6 years ago
- Status changed from New to Needs Feedback
Hi, there is an undocumented FEATURE to set an alternative previewDomain in PageTSConfig.
TCEMAIN.viewDomain = example.com
If you have your backend running on https and your frontend not you can specify a protocol in this setting.
TCEMAIN.viewDomain = http://example.com
Does this solve the problem?
Updated by Sybille Peters almost 6 years ago
Yes it solves the problem.
However, it should be:
TCEMAIN.previewDomain not viewDomain.
And, the protocol part does not work for me, so
TCEMAIN.previewDomain = blahblah.uni-hannover.de/etc
works fine (the current https protocol is used) but
TCEMAIN.previewDomain = https://blahblah.uni-hannover.de/etc
results in a URL