Feature #1649

Nice human-friendly URL for the file module

Added by Thomas Capricelli over 9 years ago. Updated almost 7 years ago.

Status:ClosedStart date:2008-07-15
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:Attachments
Target version:0.8
Resolution:Fixed

Description

The link in the 'file' module ends with "versions/download/6?attachment_id=45
It would be great to have the actual filename in the URL. My main concern is with gentoo ebuilds, which require the filename to be in the URL. But also when i need to point the user to the direct URL (not the web page with the url).
I dont know how hard this would be, i'm not much in web development.

Associated revisions

Revision 1686
Added by Jean-Philippe Lang over 9 years ago

Appends the filename to the attachment url so that clients that ignore content-disposition http header get the real filename (#1649).

History

#1 Updated by Jean-Philippe Lang over 9 years ago

We could use this URL pattern:

/download/45/filename.ext

What do you think ?

#2 Updated by Thomas Capricelli over 9 years ago

Yes, that would be perfect!

#3 Updated by Jean-Philippe Lang over 9 years ago

  • Category changed from Documents to Attachments
  • Status changed from New to Closed
  • Target version set to 0.8
  • Resolution set to Fixed

Committed in r1686.

#4 Updated by Thomas Capricelli about 9 years ago

  • % Done changed from 0 to 100

I confirm. This is exactly what I wanted. Thanks a very lot!

#5 Updated by Florian Keclik almost 7 years ago

I know it's been some time since this issue was closed but we just migrated from redmine 0.7 to 1.0. Now this feature messed up all the links in the wiki to uploaded files.
When this feature was implemented was there also a script created that changes the old style links to the new style (e.g. in wiki pages)? Or do we have to change the links manually?

Also available in: Atom PDF