Redirect gets created every time new media entity is save

Created on 16 December 2024, 4 months ago

Problem/Motivation

Each time a new media entity is saved to Media Directories using a directory-based file URL, a redirect is automatically created. This behaviour may lead to unnecessary redirects being generated, potentially causing issues such as cluttered redirect management, performance overhead, or unintended URL conflicts.

Steps to reproduce

1. Install Media Directories module
2. Go to document media type and edit the Document field.
3. Set the following token in File path field [media:directory:entity:parents]/[media:directory:entity:name]
4. Save the changes.
5. Create a media document .
6 You will a redirect get added from Temporary location to Media directory location.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India sakshi@17

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024