Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 314212

Implement a media/{media}/download route

$
0
0

Is there a way to link to media entity uris (ex example.com/media/123) and instead of going to an entity view, just serve the media item so the browser downloads it? I want to support media documents in my site, but I don't want users to have to go to the media page. I also want editors to be able to link to media items in WYSIWYG links or menu links and not worry about the filename changing if the file is replaced.


Viewing all articles
Browse latest Browse all 314212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>