- Issue created by @harsh.behl
Consider a Scenario that I have a private file attached to an entity (media) having a file path "/es-es/system/file/../abc.pdf". Now, this media is deleted but file is still there or file also deleted. Now as a custom I have bookmarked this url to file. What happens after entity is deleted, when I visit this file I get 403 Access denied. Now, I entered a redirection to redirect file path to new/updated file(pdf). But redirection is not happening as in this case path picked up by system is with country code.
1. Create a media with private files.
2. Try to access file with country code like "/es/system/files.../file.pdf"
3. Delete media but do not delete file.
4. try to access file "/es/system/files.../file.pdf" you will get 403.
5. Try to add redirection to new file "/fr/system/files../file2.pdf".
6. Redirection fails.
Create a patch to handle above.
Active
1.0
Code