Resolved the issue where a redirect was created each time a new media entity was created and the media file was saved to the Media Directory using file URLs based on the Media Directory path.
marked this merge request as ready