In TYPO3 v10 creation of auto-redirects after slug change has been
added using database queries. Thus neither TCA defaults
have been respected nor hooks are implemented to achieve instance
specific adjustments.
Furthermore, the current implementation does not check if redirect
records are allowed to be created for (default) pages. This would
be done by DataHandler.
This patch adds 'sys_redirect' to allowedTables for default
pages, as they are created with pid if the slug has changed.
In addition, now DataHandler is used to create auto-redirects,
thus respecting TCA defaults, if not overridden by required
values or extension configuration.
Furthermore redirect cache is rebuild after creating auto-redirect
through the usage of datahandler.