Bug #61251
closedHidden domains & admin panel show hidden records
100%
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.
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.
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
Updated by Markus Klein about 10 years ago
Please test the linked patch and vote for it, if it works.
Thank you.
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
Updated by Markus Klein about 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 28f636bb4dc6992707e93960a04d6b0466b785d4.