[wp-trac] [WordPress Trac] #33581: Use history.replaceState instead of 301 redirects for canonical urls
WordPress Trac
noreply at wordpress.org
Thu Sep 17 12:54:47 UTC 2015
#33581: Use history.replaceState instead of 301 redirects for canonical urls
-----------------------------------+--------------------------------------
Reporter: peterwilsoncc | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion has-patch | Focuses: javascript, performance
-----------------------------------+--------------------------------------
Comment (by peterwilsoncc):
Refactored in [attachment:33581.2.diff] to maintain backward
compatibility.
New function `maybe_redirect_canonical` wraps the call to the old function
and avoids API changes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33581#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list