[wp-trac] [WordPress Trac] #23344: 'preview' query var is not removed from post URL if a post has been published

WordPress Trac noreply at wordpress.org
Thu Jan 31 17:56:10 UTC 2013


#23344: 'preview' query var is not removed from post URL if a post has been
published
-----------------------------+--------------------------
 Reporter:  amit             |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Canonical
  Version:  3.5.1            |   Severity:  normal
 Keywords:  needs-patch      |
-----------------------------+--------------------------
 If a post has been published, it can be loaded via a URL containing 'p' &
 'preview' query vars and a canonical redirect is not done to post
 permalink which results in two URLs with same content and causes a
 duplicate content issue with search engines like Google.

 For example:

 http://example.dev/?p=731

 would redirect to

 http://example.dev/post-slug/

 but

 http://example.dev/?p=731&preview=true

 does not redirect anywhere & remains same. So if this URL is somehow
 indexed by search engines they would have two URLs with same content:

 http://example.dev/post-slug/
 http://example.dev/?p=731&preview=true

 and thus the duplicate content penalization.

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


More information about the wp-trac mailing list