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

WordPress Trac noreply at wordpress.org
Wed Mar 19 06:43:59 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:                |     Focuses:
--------------------------+-----------------------

Comment (by im3dabasia1):

 == Reproduction Report
 === Description
 This report validates whether the issue can be reproduced.

 Key instructions:
 1. Add at least 11 posts (as WordPress defaults to 10 posts per page)
 2. Make them easily searchable by using a common term in all posts
 3. Go to your site's homepage
 4. Use the search box to search for the common term you included in your
 posts
 5. This should return enough results to trigger pagination
 6. Observe the pagination behavior - At the bottom of the search results,
 you'll see numbered pagination (1, 2, 3, etc.)
 7. Click on page "2" or any numbered page link
 8. Observe that the URL will have a trailing slash that causes a 404 error
 === Environment
 - WordPress: 6.8-beta3
 - PHP: 8.1.29
 - Server: nginx/1.16.0
 - Database: mysqli (Server: 8.0.16 / Client: mysqlnd 8.1.29)
 - Browser: Chrome 134.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.1
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0
   * WordPress Beta Tester 3.6.2

 === Actual Results
 1.  ✅ The search produces the extra trailing slash which causes a 404
 error.


 === Supplemental Artifacts
 Attachment link for the bug: https://jmp.sh/DelKywdE

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


More information about the wp-trac mailing list