#92748Infinite redirects (redirect loop) when updating slugs
Description
When backend user change slug of a page then there are sys_redirects that are created automatically. Following scenario will lead to whole part of page tree be inaccessible for visitors:
1. Page is called “Subpage” (slug: /subpage)
2. Page is beeing renamed to “Subpage something” and slug get’s updated to “/subpage-something” at the same time redirect 307 is created (/subpage -> /subpage-something)
3. Page is beeing renamed to “Subpage” and slug get’s updated to “/subpage” at the same time redirect 307 is created (/subpage-something -> /subpage)
After step 3 is done – infinite redirect has been created so subpage and all it’s child pages are inaccessible at all due to infinite redirect.
We already had such a case with our redactors several times. Did anyone experienced similar problems and how you deal with that? Of course automatic redirects creation might be switched off by configuration but after all it’s nice functionality – but could be quite dangerous at current state.
Reviews 2
Related issues 7
- Bug #89090No redirect loop prevention for slugs / redirects
- Task #89301Streamline automatic slug & redirects handling
- Bug #89327Auto redirect: Could not resolve target page
- Bug #92448changing slug again after reverting an auto update causes wrong URLs on sub pages
- Feature #93288Merge redirect chains
- Bug #95650redirects:checkintegrity will falsely show redirect as conflict (if source_path=slug in translated page)
- Bug #96427Redirects module generates endless redirect loop ("Too many redirects") when renaming slug back and forth
History 13
-
Riccardo De Contardi changed category <span data-processor="relativetime" data-value="2020-12-06T17:25:59+00:00" > 12/06/20, 17:25 </span>
-
David Bruchmann changed Related to #93288 <span data-processor="relativetime" data-value="2021-01-20T13:09:28+00:00" > 01/20/21, 13:09 </span>
-
Sybille Peters commented <span data-processor="relativetime" data-value="2021-02-04T10:51:06+00:00" > 02/04/21, 10:51 </span>
-
Sybille Peters changed subject
Infinite redirects when updating slugsInfinite redirects (redirect loop) when updating slugs Tags redirects, redirect loop <span data-processor="relativetime" data-value="2021-02-04T10:51:30+00:00" > 02/04/21, 10:51 </span> -
Sybille Peters changed Related to #89090 <span data-processor="relativetime" data-value="2021-02-04T10:51:45+00:00" > 02/04/21, 10:51 </span>
-
Sybille Peters commented <span data-processor="relativetime" data-value="2021-04-10T10:25:39+00:00" > 04/10/21, 10:25 </span>
@Wolfgang Klinger After only about a week after updating to v10, redirect chaos has already rendered a page unavailable (redirect loops). This had to be manually resolved by an admin by removing unncessary redirects. It happened because URLs of pages including subpages were changed several times.
I had already anticipated problems with the automatic renaming of URLs (on subpages) and automatic redirect creation. I am afraid it is a real challenge to prevent editors from pointless multiple changes of URLs (which may be well intended but create problems). Will checkout sluggi extension.
I am not really happy with this. Wanted to stick to core solution.
-
Sybille Peters changed Related to #89327 <span data-processor="relativetime" data-value="2021-04-12T07:40:24+00:00" > 04/12/21, 07:40 </span>
-
Sybille Peters commented <span data-processor="relativetime" data-value="2021-10-14T18:04:43+00:00" > 10/14/21, 18:04 </span>
You can use redirects:checkintegrity to find redirect loops.
I noticed, that it reports some problems with redirects which are false positives. Due to this, I find it difficult to work with this report.
I created an issue for that problem and a patch, would be great if someone could help with reviewing and testing:
- issue: #95650
- patch: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71775
-
Sybille Peters changed Related to #95650 <span data-processor="relativetime" data-value="2021-10-14T18:04:59+00:00" > 10/14/21, 18:04 </span>
-
Markus Klein changed Related to #92448 <span data-processor="relativetime" data-value="2023-11-09T13:21:16+00:00" > 11/09/23, 13:21 </span>
-
Markus Klein changed Related to #89301 <span data-processor="relativetime" data-value="2023-11-09T13:29:01+00:00" > 11/09/23, 13:29 </span>
-
Georg Ringer changed Related to #96427 <span data-processor="relativetime" data-value="2026-11-01T11:01:19+00:00" > 11/01/26, 11:01 </span>
-
Georg Ringer commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-11-01T11:01:58+00:00" > 11/01/26, 11:01 </span>closed as duplicate of #96427.
I already reported this a while ago: #89090. The issue has been closed as resolved, see https://review.typo3.org/c/Packages/TYPO3.CMS/+/61627
Was added in 10.1, see changelog: https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/10.1/Feature-89090-ReportsForConflictingRedirects.html
The patch does not really resolve the issue – meaning it does not prevent redirect loops. However it does provide some tools:
What you can do is use the commands redirect:checkintegrity and / or redirects:cleanup regularly to check theredirects and cleanup old redirects periodically (e.g. using the hit count or age of the redirect):
run:
typo3/sysext/core/bin/typo3
(I have not tested this yet).