[wp-trac] [WordPress Trac] #61393: Trailing Slash Issue in Category Pagination URLs with the_posts_pagination()
WordPress Trac
noreply at wordpress.org
Tue Mar 11 11:10:21 UTC 2025
#61393: Trailing Slash Issue in Category Pagination URLs with
the_posts_pagination()
-------------------------------------------------+-------------------------
Reporter: hmbashar | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.8
Component: Permalinks | Version:
Severity: normal | Resolution: fixed
Keywords: has-screenshots has-patch has- | Focuses:
testing-info needs-testing has-unit-tests |
good-first-bug reporter-feedback |
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"59966" 59966]:
{{{
#!CommitTicketReference repository="" revision="59966"
Permalinks: Ensure pagination links are consistent with permalink
structure.
This changeset ensures that pagination links stay consistent with the
chosen permalink structure. When the permalink structure uses a trailing
slash, pagination permalinks contain one as well, but when the permalink
structure doesn't use trailing slash, then pagination links should not use
a trailing slash.
This makes use of `user_trailingslashit()` with a `paged` value for the
`type_of_url` parameter.
Props hmbashar, huzaifaalmesbah, rejaulalomkhan, mai21, rahulsprajapati,
martinkrcho, ankitkumarshah, adamsilverstein, sourabhjain.
Fixes #61393.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61393#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list