[wp-trac] [WordPress Trac] #6996: Attachment permalinks have incorrect trailing slash, do not match canonical URL

WordPress Trac wp-trac at lists.automattic.com
Mon May 19 17:36:49 GMT 2008


#6996: Attachment permalinks have incorrect trailing slash, do not match canonical
URL
---------------------+------------------------------------------------------
 Reporter:  Sam_a    |       Owner:  anonymous                                                                   
     Type:  defect   |      Status:  new                                                                         
 Priority:  normal   |   Milestone:  2.7                                                                         
Component:  General  |     Version:  2.5.1                                                                       
 Severity:  normal   |    Keywords:  has-patch tested get_attachment_link user_trailingslashit redirect_canonical
---------------------+------------------------------------------------------
 When the permalink structure lacks a trailing slash, WordPress generates
 attachment permalinks with a trailing slash (`/attachment-name/`), but
 redirects them to the correct URL (/`attachment-name`).

 Patch fixes the problem by applying user_trailingslashit() in
 get_attachment_link().

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6996>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list