Has anyone figured out a way to keep old links on Azure Blob storage when you rewrite a media file on Umbraco Cloud?
For example old file like this:
/media/3247/lfaselectedlist_en.pdf
Is getting changed to this:
/media/8d8915a226f3c26/lfaselectedlist_en.pdf
Some of our users rely on these URLs not changing. Any help appreciated! We did have the code that kept those links unchanged on standard Media file system but it isnt working on Blob storage.
Thank you!
Genc
Azure blob storage: Keep old links
Hellos,
Has anyone figured out a way to keep old links on Azure Blob storage when you rewrite a media file on Umbraco Cloud?
For example old file like this: /media/3247/lfaselectedlist_en.pdf
Is getting changed to this: /media/8d8915a226f3c26/lfaselectedlist_en.pdf
Some of our users rely on these URLs not changing. Any help appreciated! We did have the code that kept those links unchanged on standard Media file system but it isnt working on Blob storage. Thank you! Genc
Hi all,
A quick update on this, got it sorted out thx to Umbraco Support.
Here is how to fix:
Add:
And, if you are compiling it in Core:
Before your custom method. So your whole method looks like this:
That's it! Your old links will be kept on Azure Blob Storage. Thx.
is working on a reply...