Bug #61251
closed
Hidden domains & admin panel show hidden records
Added by Lieuwe Hummel about 10 years ago.
Updated about 6 years ago.
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.
- 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.
- 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
Please test the linked patch and vote for it, if it works.
Thank you.
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
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF