Bug #85471
closedHidden pages cannot be seen in FE as a BE user when using config.sys_language_mode = strict
100%
Description
TYPO3 8.7.16.
Requisites:
- TypoScript option "config.sys_language_mode = strict".
- A default page is created.
- An overlay page is created and is hidden.
Trying to visualize that hidden page in the frontend gives a:
Page Not Found
Reason: Page is not available in the requested language (strict).
Shouldn't the backend editor still see that page in the frontend as PREVIEW?
I understand that for not logged in backend users, that Page not found error is right, but for backend users as well?
Files
Updated by Sergio Catalá over 6 years ago
The frontend preview is only seen for a default language hidden page (sys_language_uid=0) but not for a localized hidden page (sys_language_uid > 0).
Updated by Riccardo De Contardi about 6 years ago
I tried this test with Version 9.5.1-dev
Prerequisites¶
- TYPO3 with a default language (Italian) and at least another language (english)
- Proper "Site Configuration > Languages" already configured for both default and english language (Visible in frontend, entry point, etc)
Test procedure¶
- create a new page in default language (e.g. "esempio")
- create a translation of the page in english (e.g. "example)
Both pages are available on frontend
https://yoursite.com/en/example/
- hide the translated page and click on the "preview" icon in Module page > languages visualization
RESULT: the page is not available in frontend (404 error)
NOTE if you also hide the page in default language and try to see it, you will see it with the "PREVIEW" badge on the corner
Attention¶
Both pages are visible using the VIEW module; you can switch the language variants with the dropdown
So, if you want to preview a hidden page in an alternative language, you can use the "View" module
Updated by Riccardo De Contardi about 6 years ago
[UPDATE]
strange...now I am not able to make it work on the view module...and with a fresh 9.5.0 installation I got the 404 error also there... I for sure did something wrong before
Updated by Gerrit Code Review over 5 years ago
- Status changed from New 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 https://review.typo3.org/c/Packages/TYPO3.CMS/+/60331
Updated by Gerrit Code Review over 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60331
Updated by Gerrit Code Review over 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60331
Updated by Anonymous over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset daf592dac63c318f59351eb4aef2393ea619a4d6.
Updated by Gerrit Code Review over 5 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60364
Updated by Gerrit Code Review over 5 years ago
Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60364
Updated by Anonymous over 5 years ago
- Status changed from Under Review to Resolved
Applied in changeset 528b02e334d4fd84cfabac54cfe0134c19aa751f.
Updated by Anonymous over 5 years ago
Anonymous wrote:
Applied in changeset 528b02e334d4fd84cfabac54cfe0134c19aa751f.
Is there a chance to have this fix backported to 8.7.x branch?
Updated by Anonymous over 5 years ago
- File 0001-BUGFIX-Enable-preview-of-hidden-page-translations.patch 0001-BUGFIX-Enable-preview-of-hidden-page-translations.patch added
- File 0002-BUGFIX-adhere-disable-restriction-for-pages-overlay.patch 0002-BUGFIX-adhere-disable-restriction-for-pages-overlay.patch added
Ingo Fabbri wrote:
Anonymous wrote:
Applied in changeset 528b02e334d4fd84cfabac54cfe0134c19aa751f.
Is there a chance to have this fix backported to 8.7.x branch?
Updated by Sven Burkert about 5 years ago
Am I right that this isn't fixed in TYPO3 8 LTS?
Updated by Anonymous about 5 years ago
Sven Burkert wrote:
Am I right that this isn't fixed in TYPO3 8 LTS?
Your are right. Quite ridiculous. There is already a patch for 8 LTS above.