Private file redirection with country codes does not support redirections

Created on 16 June 2025, 3 months ago

Problem/Motivation

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.

Steps to reproduce

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.

Proposed resolution

Create a patch to handle above.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India harsh.behl

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024