Project

General

Profile

Actions

Feature #36542

closed

Changed domain handling on "View webpage" from backend causes problems

Added by Sybille Peters about 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
Start date:
2012-04-25
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

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 !!!


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #34820: t3lib_befunc::getViewDomain does not respect http/https schemeClosed2012-03-14

Actions
Related to TYPO3 Core - Bug #35392: Preview links not working if BE is using SSL and websites aren'tClosed2012-03-30

Actions
Actions #1

Updated by Philipp Gampe about 12 years ago

Why would you preview with a wrong domain? Can you provide a usecase for using a different domain for previewing the content, then for actually publishing the content?

Actions #2

Updated by Sybille Peters about 12 years ago

use case #1: using a reverse proxy for HTTPS. All backend access is redirected via the reverse proxy changing all the URLs from www.domain1.de to secure.domain.de/www.domain1.de etc.

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.

Actions #4

Updated by Ruth Schwarzenbach almost 12 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.

Actions #5

Updated by Thor Solli almost 12 years ago

We have the same problem with a client. We have one main domain for the admins and several "subdomains" for editors. Preview of a hidden page is somewhat tedious for admins logging in on the main domain.

Actions #6

Updated by Mathias Schreiber over 9 years ago

  • Target version set to 8 LTS
Actions #7

Updated by Frank Gerards about 9 years ago

Hi,

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.

Actions #8

Updated by Wouter Wolters almost 9 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?

Actions #9

Updated by Sybille Peters almost 9 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

https://https//blahblah.uni-hannover.de/etc

being generated.

Actions #10

Updated by Gerrit Code Review almost 9 years ago

  • Status changed from Needs Feedback to Under Review

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/41095

Actions #11

Updated by Gerrit Code Review almost 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/41095

Actions #12

Updated by Gerrit Code Review almost 9 years ago

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/41122

Actions #13

Updated by Wouter Wolters almost 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF