[wp-trac] [WordPress Trac] #52865: Strip 'enclosed' trailing spaces in URLs

WordPress Trac noreply at wordpress.org
Tue Jun 10 15:39:49 UTC 2025


#52865: Strip 'enclosed' trailing spaces in URLs
-------------------------------+------------------------------
 Reporter:  jonoaldersonwp     |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  low                |   Milestone:  Awaiting Review
Component:  Canonical          |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  performance
-------------------------------+------------------------------
Changes (by flixos90):

 * keywords:  seo => reporter-feedback


Comment:

 @jonoaldersonwp On the one hand, changing `redirect_canonical()` to cater
 for URLs with trailing slashes seems very reasonable to me. On the other
 hand, wouldn't that then break existing sites with such URLs? I'm
 wondering if there would be backward compatibility issues.

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


More information about the wp-trac mailing list