Opened 4 years ago
#52419 new defect (bug)
Pagination adds trailing slash when it shouldn't
Reported by: | DhrRob | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | minor | Version: | 5.6 |
Component: | Rewrite Rules | Keywords: | |
Focuses: | Cc: |
Description
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.
Note: See
TracTickets for help on using
tickets.