[wp-trac] [WordPress Trac] #34632: Private page redirects to another page with similar permalink

WordPress Trac noreply at wordpress.org
Wed Nov 11 01:33:12 UTC 2015


#34632: Private page redirects to another page with similar permalink
---------------------------+----------------------
 Reporter:  danielhuesken  |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Canonical      |     Version:  4.3.1
 Severity:  normal         |  Resolution:  invalid
 Keywords:                 |     Focuses:
---------------------------+----------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 This is the correct default behaviour, and has nothing to do with the fact
 there's a private page.

 WordPress attempts to guess the intended url on 404's, in the example we
 assume that the post URL was cut off in the medium which the user
 retrieved the URL from.

 If we changed this behaviour based on if a private page existed, we'd open
 up the possibility to leak the existence of a private page.

 So.. if you want to disable the 404 redirect guessing, there's plugins and
 filters for that (I'm sure), but in core this is the intended behaviour.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34632#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list