Documentation missing to disable automatic creation of redirects on slug change
In 10 LTS, redirects are automatically created when a slug changes.
This is problematic and sometimes not wanted.
Example: if a site is still in development and a lot of initial content is created, every "copy page and update slug" would create a redirect entry.
Current solution is to simply disable the redirect extension...
There needs to be an option to disable this behaviour, ideally in the site configuration or at least globally.
The documentation of how to disable the automatic creation of redirects is hidden in the changelog https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/10.1/Feature-89115-Auto-createRedirectsOnSlugChanges.html
This needs to be included in the redirects extension to show up at https://docs.typo3.org/Home/SystemExtensions.html
Updated by Andreas Fernandez about 1 year ago
- Status changed from New to Needs Feedback
You can disable this feature in your site configuration, please see https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/10.1/Feature-89115-Auto-createRedirectsOnSlugChanges.html.
Does this help you?
Updated by Andreas Kiessling about 1 year ago
- Subject changed from Option required to disable automatic creation of redirects on slug change to Documentation missing to disable automatic creation of redirects on slug change
- Description updated (diff)
that looks good, thanks for the pointer!
I've updated the ticket, because this needs to be officially documented and not put just in the changelog.
Updated by Riccardo De Contardi 9 months ago
I tried to test the feature as stated on the documentation link: https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/10.1/Feature-89115-Auto-createRedirectsOnSlugChanges.html by putting the code on my config.yaml file
on version 10.4.12 (fresh installation with composer)
And I found that
- using the suggested code works (e.g.)
settings: redirects: autoUpdateSlugs: false autoCreateRedirects: false
actually disables the automatic recreation of the redirect;
also a test like:
settings: redirects: autoUpdateSlugs: true autoCreateRedirects: true httpStatusCode: 303
works, too: the redirect is created automatically and listed as a 303 on the Redirects module.
Instead it does not work if I put the
redirects node directly on the root of the config.yaml file as suggested by Jörn Wagner.
The only thing I found it wrong on the documentation is the indentation of the snippet of code; I had to adjust it on the config.yaml file.
Is it sufficient to consider this issue closed?
@Jörn Wagner may I ask you to test it again?