[wp-trac] [WordPress Trac] #63123: Numbered Pagination Adds a Trailing / To URLs That Generates a 404 Error

WordPress Trac noreply at wordpress.org
Tue Mar 25 00:15:51 UTC 2025


#63123: Numbered Pagination Adds a Trailing / To URLs That Generates a 404 Error
-------------------------------------------------+-------------------------
 Reporter:  jeffr0                               |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.8
Component:  Permalinks                           |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-testing-info has-      |     Focuses:
  unit-tests                                     |
-------------------------------------------------+-------------------------

Comment (by peterwilsoncc):

 As the release candidate is due to land within 24 hours, I've
 [https://github.com/WordPress/wordpress-develop/pull/8578 created an
 alternative PR] with some additional changes:

 * Addition of unit tests for search/query string parameters
 * Addition of unit tests for URL fragments
 * Moved where the trailing slashes are added so it occurs before query
 string parameters are added back on to the links via `add_query_arg()`
 * Links are only modified if they do not contain either a `?` or a `#`
 with the exception of root URLs, `example.com/`, as browsers will add them
 anyway

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63123#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list