WordPress.org

Make WordPress Core

Opened 8 years ago

Last modified 8 months ago

#1914 reopened enhancement

Permalinks for unattached uploads/attachments

Reported by: dlhau@… Owned by: anonymous
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:1 skeltoac8 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

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.

comment:2 anonymous7 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

comment:3 Viper007Bond20 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 suggest the idea proposed in the original post be reconsidered. Query strings are ugly. :)

Last edited 20 months ago by Viper007Bond (previous) (diff)

comment:4 johnbillion20 months ago

  • Cc johnbillion@… added

comment:5 Hekos19 months ago

  • Cc marko@… added

comment:6 dd328 months ago

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.