Opened 5 years ago
#52419 new defect (bug)
Pagination adds trailing slash when it shouldn't
| Reported by: | DhrRob | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Rewrite Rules | Version: | 5.6 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)