What is the umbraco-est way to expose a pdf in the media section with a descriptive alias as the url instead of the file path in the media section?
Umbraco 7+
My concern is there is an easy way to do this and I am just missing it.
Problem: if site visitor bookmarks the pdf and the media item is updated with a new file with a different filename, the favorite still points to the old file path.
Desired solution: Make an alias url that when clicked loads the pdf in the browser without changing the url in the browser to the path of the file.
I have used the node.umbracoFile and node.Url but both of those expose the download path of the file.
I have redirected to the file path in a controller, but that changes the url in the browser so they can’t favorite the alias.
I have a working solution that uses two controllers, but i am curious to find out if i have over-complicated this and there is a built in way to do this in Umbraco.
Can anyone give me some direction on the best way to do this?
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/88552-how-to-link-to-a-pdf-with-an-alias-and-not-the-filepath