[wp-trac] [WordPress Trac] #26871: wp_get_shortlink() returns post link for the home page
WordPress Trac
noreply at wordpress.org
Sat Jan 18 21:55:06 UTC 2014
#26871: wp_get_shortlink() returns post link for the home page
--------------------------+------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Post Types | Version: 3.7
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------
Changes (by nacin):
* version: => 3.7
Comment:
This triggered a curious (and major) bug on jquery.com, as they directed
nginx to cache pages and redirects but did not have query strings in their
cache key. `?p=X` redirected to the home page, and this redirect got
cached as / => /. Thus, the home page was issuing a 301 to itself. While I
doubt this is going to be common at all, and the bug still existed (the
link was simply broadcasted in this case), the front page is a prominent
location and this is lame and crufty. Worth considering a point release
fix; curious what others think.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26871#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list