[wp-trac] [WordPress Trac] #7915: Links to pages that are children of drafts are broken

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 18 16:58:18 GMT 2008


#7915: Links to pages that are children of drafts are broken
---------------------+------------------------------------------------------
 Reporter:  stevish  |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.8      
Component:  General  |     Version:           
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 Assume you have a page called "Parent" that is saved as a draft. Then
 assume that you write a page called "Child", set it as a child of
 "Parent", and publish it. The permalink that will be generated for "Child"
 will be http://example.com//child instead of
 http://example.com/parent/child. And clicking on said link (or typing it
 into your browser's address bar) will produce a 404.

 Another interesting oddity is if you try to go manually to
 http://example.com/child, it will redirect you to
 http://example.com//child and produce a 404.

 This is definitely a minor bug, and some may not even consider it a bug.
 The situation during which this would be a problem is if you are making a
 page that has links to all its child pages, and you don't want to publish
 this main page until you're sure all the links work properly. In that case
 (which happens to have been my case), you will then spend 2 hours digging
 through forums and messing around with permalinks, trying to figure out
 why these links aren't working.

 It's a rare situation, but it can be a pretty time consuming little
 problem.

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


More information about the wp-trac mailing list