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

WordPress Trac noreply at wordpress.org
Fri Aug 14 12:53:31 UTC 2020


#50976: WordPress stripping out "page" query parameter with 301 redirect
-----------------------------+---------------------
 Reporter:  aleksihulkkonen  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  5.5.1
Component:  Rewrite Rules    |     Version:  5.5
 Severity:  normal           |  Resolution:
 Keywords:  2nd-opinion      |     Focuses:
-----------------------------+---------------------

Comment (by SergeyBiryukov):

 Hi there, welcome to WordPress Trac! Thanks for the report.

 Either [47727] / #40773 or [47760] / #45337 indeed would be the possible
 culprit here. I'm sorry to hear this is causing issues since the latest
 update.

 That said, `page` is one of the
 [https://codex.wordpress.org/WordPress_Query_Vars reserved query vars] in
 WordPress that has a very specific usage for pagination, it's used to
 display parts of a post separated with the `<!--nextpage-->` tag, on a URL
 like `/example/123/`.

 It should only have a numeric value, and is not meant to be used for any
 other purpose, e.g. `?page=offers&id=xxx`.

 So I would recommend changing this variable in any custom code to some
 other name to avoid conflicts.

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


More information about the wp-trac mailing list