• Hi,

    After this WordPress version 5.5, I have noticed that in any frontend page which contains “page” as a URL parameter has been trimmed or rewritten.

    Example:
    If we try with

    https://wordpress.org/download/?page=test
    then, the URL will be rewritten as
    https://wordpress.org/download/

    But if you give other parameter name like page_
    https://wordpress.org/download/?page_=test
    then the URL parameter is not rewritten.

    Thanks
    M A Vinoth Kumar

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    “page” query string is a kind of reserved word for posts with page breaks. The “pretty” form is like “/post-name/2/”, but the equivalent plain form is “/?p=123&page=2”. When passed a “page” query string which is inappropriate for the context, WP serves what it thinks is appropriate using the result’s permalink as the rewrite. I’m pretty sure it’s been this way prior to 5.5.

    It’s not a good idea to use plain English terms for anything because it will likely conflict with other plugins using the same term. You should prefix terms with identifying initials to help avoid name collisions. For example “/post-name/?bcw_page=2”

Viewing 1 replies (of 1 total)
  • The topic ‘Issue: URL Parameter with name page in Frontend Pages’ is closed to new replies.