[wp-trac] [WordPress Trac] #61393: Trailing Slash Issue in Category Pagination URLs with the_posts_pagination()
WordPress Trac
noreply at wordpress.org
Tue Mar 17 01:33:19 UTC 2026
#61393: Trailing Slash Issue in Category Pagination URLs with
the_posts_pagination()
-------------------------------------------------+-------------------------
Reporter: hmbashar | Owner:
| peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: Permalinks | Version:
Severity: normal | Resolution: fixed
Keywords: has-screenshots has-test-info has- | Focuses:
patch has-unit-tests commit |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"62036" 62036]:
{{{
#!CommitTicketReference repository="" revision="62036"
Permalinks: Follow rewrite rules for trailing slashes in
`paginate_links()`.
Modifies the default settings of `paginate_links()` to only include
trailing slashes, eg `example.org/page/2/`, when the permalink settings
include a trailing slash. When the permalink settings do not include a
slash, neither do the generated links, eg `example.org/page/2`.
This prevents the generated links from hitting a URL that subsequently
redirects when the permalink structure does not include a trailing slash.
Props adamsilverstein, ankitkumarshah, audrasjb, hmbashar,
huzaifaalmesbah, joedolson, juanmaguitar, krupajnanda, mai21, ozgursar,
peterwilsoncc, rahulsprajapati, sirlouen, welcher, westonruter.
Fixes #61393.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61393#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list