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

WordPress Trac noreply at wordpress.org
Thu Mar 20 13:15:09 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  |     Focuses:
----------------------------------------+-----------------------

Comment (by im3dabasia1):

 Replying to [comment:9 peterwilsoncc]:
 > Of the two approaches, I prefer @ruturajraval2305's suggestion of
 checking for the presence of a query string parameter rather than limiting
 the test to `is_search()`.
 >

 Yes, that makes sense. Also, when a user intends to make a search query
 with a '?', the '?' would be encoded and replaced with '%3F', which
 wouldn't affect @ruturajraval2305 's solution.

 Perhaps we could add a one-line comment to explain why this unique change
 has been added, which would help future contributors understand the
 rationale behind it.

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


More information about the wp-trac mailing list