Project

General

Profile

Actions

Bug #85471

closed

Hidden pages cannot be seen in FE as a BE user when using config.sys_language_mode = strict

Added by Sergio Catalá almost 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-07-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions #1

Updated by Sergio Catalá almost 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).

Actions #2

Updated by Riccardo De Contardi over 5 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/esempio/

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

Actions #3

Updated by Riccardo De Contardi over 5 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

Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

Updated by Anonymous about 5 years ago

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

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

Actions #9

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

Actions #10

Updated by Anonymous about 5 years ago

  • Status changed from Under Review to Resolved
Actions #11

Updated by Anonymous almost 5 years ago

Anonymous wrote:

Applied in changeset 528b02e334d4fd84cfabac54cfe0134c19aa751f.

Is there a chance to have this fix backported to 8.7.x branch?

Actions #13

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions #14

Updated by Sven Burkert over 4 years ago

Am I right that this isn't fixed in TYPO3 8 LTS?

Actions #15

Updated by Anonymous over 4 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.

Actions

Also available in: Atom PDF