[wp-trac] [WordPress Trac] #50976: WordPress stripping out "page" query parameter with 301 redirect

WordPress Trac noreply at wordpress.org
Fri Aug 28 20:40:26 UTC 2020


#50976: WordPress stripping out "page" query parameter with 301 redirect
-----------------------------+-----------------------
 Reporter:  aleksihulkkonen  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  reopened
 Priority:  normal           |   Milestone:
Component:  Rewrite Rules    |     Version:
 Severity:  major            |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+-----------------------
Changes (by leec87):

 * status:  closed => reopened
 * resolution:  wontfix =>
 * severity:  normal => major


Comment:

 Replying to [comment:21 audrasjb]:
 > Hi,
 > You can use any variable name you want, but `page` is a reserved term
 because it's used for pagination. It shouldn't be used for any other
 purpose. The fact it previously used to work was undocumented and really
 unexpected. WordPress can't maintain undocumented use cases :)
 >
 > To make it work again, you'll just have to use another var name and
 update the rewrite rules accordingly.

 You’re not listening, I haven’t used any query or anything. I’m just using
 the pagination feature of WordPress,  but whatever update this has done,
 has now made all page number URLs redirect to the first page, which isn’t
 what it should do.

 This redirection from /pagename/[any page number] to /pagename/ needs to
 be reverted.

 No one has explained why this has been changed yet and how it benefits.
 It’s just breaking lots of websites that use it (WordPress is at fault
 here).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50976#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list