Get files url with native extensions (image.jpg and not image.aspx)
We need to be able to get the files url with native extensions example ****/image.jpg and not .aspx.
we need this to be used with third party sites, for example we are not able to share an image using Facebook as it sees it as a webpage and not an image, so it doesn't generate preview for it.
In the other hand we are facing the same issue with a 3rd party pdf viewer that we are using.
So allowing the developer to access the url with the native extension will be a great help.
Hello to all supporters!
We are currently looking for a way how to move forward with this idea.
Currently, Kentico should generate correct extensions (.jpg, .png, …) when you turn on extensionless URLs and use the runAllManagedModulesForAllRequests.
1. Did you run into scenarios, where this setup did not work for you? Could you help us by providing examples?
2. Is setting the runAllManagedModulesForAllRequests web.config key fine for your solutions? If not, can you share some comments?
Thanks a lot in advance!
My error was fixed by adding `runAllManagedModulesForAllRequests` in appropriate place in web.config (must be specifically in a correct position).
Not being able to get a full file path with extension makes it very difficult to work with certain front-end plugins, i.e. jquery fancybox.
Adam Jackman-Moore commented
Need this for image indexation by Google too.
If I could add my remaining 40 votes for this I would.
This functionality will be part of SEO improvements in one of the future versions.