#103408Automatically add redirects if a file is moved within the fileadmin module
Description
As editor I’d like TYPO3 to automatically add redirects when I move files in the fileadmin module (via drag&drop).
This should be clear if only files are moved.
Problem / to be clarified
If a folder is moved it will get a bit interesting.
The “easiest” way would be to add a wildcard redirect for the folder that was used.
This might lead to problems if someone creates a folder with the same name in the same location.
This could be prevented by checking the redirects when creating a folder.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 2
-
Stefan Terborg commented 11/04/24, 06:50
-
Georg Ringer commented and changed status
NewRejected 03/31/25, 15:15hey!
thanks for the feature request! There are events in the
ResourceStorageyou can use, e.g.\TYPO3\CMS\Core\Resource\Event\AfterFileMovedEventto create redirects.however, be aware of
RewriteRule ^(?:fileadmin/|typo3conf/|typo3temp/|_assets/) - [L]
which might interfere here.
I am closing this issue because this can be solved using a custom extension. Feel free to share that extension afterwards – not everything must be solved in the core.
If you got further questions, feel free to contact me on slack!
I would also like to have an automatic redirect added, when I rename a file or when I replace a file without keeping the filename.