#102901Automatically created redirects can point to the same URL as the source
Description
If you update a slug, typo3 will create a redirect that removes all additional query params (“Keep GET Parameters” = off).
It may happen, that – through changing of slugs – a redirect is created, that effectively looks this way:
curl -I ‘https://my.site/path/to/page?type=200&cHash=someCacheHash’
HTTP/2 307 content-type: text/html; charset=UTF-8 x-redirect-by: TYPO3 Redirect 101 location: https://my.site/path/to/page
So when generating those links in your fluid template you will never receive the content you want to load, you will always load page type 0.
This affects all required query parameters.
My suggestion:
If the source and the generated target url are the same:
1) dont send the redirect
2) if not protected, delete the obsolete redirect
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Automatically created redirects can point to the same URL as the source Resolves: #102901 Releases: main