[wp-trac] [WordPress Trac] #6997: Cannot use year (ie, 2008) in page slug

WordPress Trac wp-trac at lists.automattic.com
Mon May 19 19:28:54 GMT 2008


#6997: Cannot use year (ie, 2008) in page slug
----------------------+-----------------------------------------------------
 Reporter:  chrismou  |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:  2.6      
Component:  General   |     Version:  2.5.1    
 Severity:  normal    |    Keywords:           
----------------------+-----------------------------------------------------
 WordPress doesn't seem to like the idea of me using "2008" or "2007" as a
 page slug.

 The situation is that I'm writing a page a year dedicated to a festival I
 go to.  The front page is located at mou.me.uk/glastonbury, and sections
 for each year would be located at mou.me.uk/glastonbury/2007/ and
 mou.me.uk/glastonbury/2008/ respectively.

 BUT, when I try and view either of these pages, it shows me the page
 located at mou.me.uk/glastonbury - ie, the parent page.

 Bizarrely, when I entered mou.me.uk/glastonbury/2007/a/ (just to test), it
 redirected me to a post I wrote in 2007.

 I assume that this is not intended behaviour?  I can see the logic in
 trying to extract a date from the URL and find the closest matching post,
 but surely this should be overridden if Ive created a page where the slug
 matches exactly whats in the address bar?

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


More information about the wp-trac mailing list