Opened 7 weeks ago
Last modified 7 weeks ago
#62877 new defect (bug)
Inconsistent behaviour of redirect guess when page is private
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.7.1 |
Component: | General | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
I have a blog post with the name "Events Cancelled Due To Coronavirus" accessible at the URL "/news/2020/03/30/events-cancelled-due-to-coronavirus/". If I create a new page with the name "Events" and URL "/events" and set it to "Private", then "/events" redirects to the blog post "/news/2020/03/30/events-cancelled-due-to-coronavirus/". If I delete the page, the redirect does not happen.
The redirect guessing code appears to check get_query_var( 'name' )
and in the case of the private events page, this value is populated with "events" whereas for a missing page or a request for the URL "/even", this is not the case.
Change History (3)
This ticket was mentioned in PR #8210 on WordPress/wordpress-develop by @sukhendu2002.
7 weeks ago
#3
- Keywords has-patch has-unit-tests added
Trac ticket: https://core.trac.wordpress.org/ticket/62877
Reproduction Report
Description
This report validates whether the issue can be reproduced.
Environment
Actual Results