[wp-trac] [WordPress Trac] #62877: Inconsistent behaviour of redirect guess when page is private
WordPress Trac
noreply at wordpress.org
Tue Jan 28 15:27:02 UTC 2025
#62877: Inconsistent behaviour of redirect guess when page is private
---------------------------+-----------------------------
Reporter: jamieburchell | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.7.1
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62877>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list