Opened 8 years ago
Last modified 7 months ago
#1914 reopened enhancement
Permalinks for unattached uploads/attachments
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Permalinks | Version: | 1.6 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | johnbillion@…, marko@… |
Description
Currently attachement links are in the form:
http://www.example.com/?attachment_id=1
Would look much neater if these matched the permalinks of regular posts (depending on what it is configured to) eg:
http://www.example.com/attachement/1/
Change History (6)
comment:3
Viper007Bond — 19 months ago
- Component changed from Administration to Permalinks
- Keywords needs-patch added
- Milestone set to Future Release
- Resolution wontfix deleted
- Status changed from closed to reopened
- Summary changed from Attachement Permalinks to Permalinks for unattached uploads/attachments
- Type changed from defect (bug) to enhancement
Re-opening this guy.
If media is uploaded using Media -> Add New, it doesn't get a permalink because it doesn't have a post.
I'd like to resuggest the idea proposed in the original post be reconsidered. Query strings are ugly. :)
Version 0, edited 19 months ago
by Viper007Bond
(next)
comment:4
johnbillion — 19 months ago
- Cc johnbillion@… added
Currently http://example.com/attachment-slug-name/ will work for Attachments not attached to any posts, but we don't generate links using that format.
Note: See
TracTickets for help on using
tickets.

Attachment permalinks are in the form [parent permalink]/[attachment slug]. There is not an intermediate attachment permalink style. What is an attachment without something to attach to?
It has not been decided what to do with orphaned attachments, although I think we should drop and unlink.