[wp-trac] [WordPress Trac] #12456: Canonical URL redirect issue with post_id/postname permalink structure
WordPress Trac
noreply at wordpress.org
Tue Jun 9 19:24:37 UTC 2020
#12456: Canonical URL redirect issue with post_id/postname permalink structure
-------------------------------------------+-----------------------------
Reporter: Frank.Prendergast | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: Canonical | Version: 2.9.2
Severity: normal | Resolution: fixed
Keywords: early has-patch needs-testing | Focuses:
-------------------------------------------+-----------------------------
Changes (by whyisjake):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"47937" 47937]:
{{{
#!CommitTicketReference repository="" revision="47937"
Canonical: Ensure a redirect for posts missing `postname` in a query with
an ID.
If a site is using `/%post_id%/%postname%/` as permalink structure, and is
missing the `postname`, the site won't redirect to the appropriate URL.
This change ensure that the redirect happens.
Fixes: #12456.
Props: Frank.Prendergast, dd32, Otto42, hlanggo, wonderboymusic, atimmer,
seth17, calvin_ngan, Niresh12495, anbumz, SergeyBiryukov, donmhico.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12456#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list