#110059Redirection to deleted pages should be visible to contributors
Description
Hello,
Actually the module “redirect” is not showing redirections linked to deleted pages to a contributor. Which doesn’t make much sense.
If the target is an hidden page or a non-existent one, the system will show the redirect to the user, but if the page is flagged as “deleted=1” no. Which then leads to the user thinking the redirect doesn’t exist, he create a new one, but the old one is still in place and it leads to a 404 in the frontend (page deleted, normal behavior)
First one is a disabled page, the contributor can see it, no issue.
Second one, is a page that doesn’t exist, the user can see it again, no issue.
.clipboard-202606160732-znxti.png
If I log in as an admin, their is a third redirect, at the top, the one with a deleted page as a target:
.clipboard-202606160734-qrlx2.png
If the user is a contributor, their is some access check compared to an admin. In this file: TYPO3\CMS\Redirects\Security\RedirectPermissionGuard:113:
.clipboard-202606160739-lsywl.png
We simply needs to set the third parameter “$useDeleteClause = true” to false.
I don’t see any issue to do that, since the system will still check if the user can see the page or not.
The bug is present at least since TYPO3 10, but it’s not a security issue, so it should be fix for TYPO3 13 and up? If I have time I’ll send a patch.
Reviews 1
History 24
-
Ludovic Nogueira commented <span data-processor="relativetime" data-value="2026-06-17T12:05:04+00:00" > 06/17/26, 12:05 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 94524 status
NewUnder Review <span data-processor="relativetime" data-value="2026-06-17T12:54:19+00:00" > 06/17/26, 12:54 </span> -
Gerrit Code Review pushed patch set 2 for main to change 94524 <span data-processor="relativetime" data-value="2026-06-17T15:23:05+00:00" > 06/17/26, 15:23 </span>
-
Sebastien Convers commented <span data-processor="relativetime" data-value="2026-06-30T13:49:18+00:00" > 06/30/26, 13:49 </span>
The fact that user cannot see redirection to deleted pages also cause errors in broken links module: module show a broken link because of a redirection to a broken page, but when user try to show/edit, you get this
Access to table sys_redirect for user 3 was denied by a ModifyRecordEditUserAccessEvent listener 1662727149
And just to add more info, it’s a regression added due to this change added earlier this year (it’s the code for the v12 but it was for all version): https://github.com/TYPO3-CMS/redirects/commit/96e316ae878f2fc28b5e5782a799f787c346d7d0