XF 1.5 Full friendly URLs for inserted attachments so they end with .jpg?

DWJames

Member
Hi, is there a trick I'm missing to get attachments in posts to have a .jpg ending?
Currently we have full friendly URLs turned on, so our thread urls are like
Code:
www.oursite.com/forum/threads/some-title.19707/page-2#post-254601
but when we have an attachment inserted into the post it's being inserted as
Code:
www.oursite.com/forum/attachments/imagename-jpg.16691/
which means it's not being picked up as an image file by our caching.
I'm happy for guests to view all images and we are using nginx
What's the trick I'm missing to get our attachments to include in a format where they end with the file extension name?
Should that be a friendly URL process or do I need a plugin?
I searched around but although I can see examples of people having normal file extensions for their attachments, I don't understand how they've got there.

Any pointers gratefully received :)

thanks,
James
 
There's nothing that does this out of the box. The friendly URL element relates specifically to dropping the "index.php?" middle part of the URL.
 
There's nothing that does this out of the box. The friendly URL element relates specifically to dropping the "index.php?" middle part of the URL.
Thanks Mike

Thanks Amin, I gave this a go, but it doesn't work on my server for some reason.

I seem to have got around this for now by forcing cloudflare to always cache these attributes by putting a URL rule in place
 
Top Bottom