[wp-trac] [WordPress Trac] #52419: Pagination adds trailing slash when it shouldn't

WordPress Trac noreply at wordpress.org
Tue Feb 2 09:24:13 UTC 2021


#52419: Pagination adds trailing slash when it shouldn't
---------------------------+-----------------------------
 Reporter:  DhrRob         |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Rewrite Rules  |    Version:  5.6
 Severity:  minor          |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 When the WordPress site has been set-up to not use trailing slashes, the
 1st page of the pagination still adds a trailing slash to the URL.
 Tested with WordPress 5.6 and 5.5 in Nginx 1.16.0 with Twentytwenty, no
 active plugins.

 ----

 For example:
 The archive page is https://playground.local/category/classic, when using
 the pagination to go to page 2, the url changes to
 https://playground.local/category/classic/page/2. Now, when I try to
 navigate back to page 1 of the archive, the URL is
 https://playground.local/category/classic/. Adding a trailing slash, even
 though the WordPress installation has been set up so that it doesn't use
 trailing slashes.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52419>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list