Project

General

Profile

Actions

Bug #61251

closed

Hidden domains & admin panel show hidden records

Added by Lieuwe Hummel about 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2014-08-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

My environment
We have a site with multiple domains, these domains are used for different stages in the dev process (Dev/Test/Acc/Prod). Each stage has its own domain. When on Development (for example), the other domains are hidden and the base url is set to development domain. This means i have the following list of domains on the site root (in this order):

  • prod.customer.com
  • acc.customer.com
  • test.customer.com
  • dev.customer.com

My issue
When previewing pages, the typoLink() method looks up the domain name it should have. With the admin panel enabled and the 'Show hidden records' option enabled, it retrieves the production domain on my test/acc/dev server and prepends that.

I had expected that the domain lookup did not take the Show hidden records into account.

Note
Before this was not an issue, but TYPO3 adds the domain name to the generated link since some recent version.

Actions #1

Updated by Markus Klein about 10 years ago

  • Category set to Frontend
  • Status changed from New to Accepted
  • Target version set to next-patchlevel

Indeed, this also happens for sys_domain.

Technical background $GLOBALS['TSFE']->getSysDomainCache() fetches domains by using $GLOBALS['TSFE']->sys_page->enableFields('sys_domain'), which in turn checks $GLOBALS['TSFE']->showHiddenRecords which is fed by the admin panel.

Actions #2

Updated by Gerrit Code Review about 10 years ago

  • Status changed from Accepted 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/34322

Actions #3

Updated by Markus Klein about 10 years ago

Please test the linked patch and vote for it, if it works.
Thank you.

Actions #4

Updated by Gerrit Code Review about 10 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/34369

Actions #5

Updated by Markus Klein about 10 years ago

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

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF