[wp-trac] [WordPress Trac] #49369: redirect_canonical() should strip trailing protocols

WordPress Trac noreply at wordpress.org
Thu Feb 6 11:08:20 UTC 2020


#49369: redirect_canonical() should strip trailing protocols
------------------------------------------+------------------------------
 Reporter:  onlyonemj                     |       Owner:  (none)
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Canonical                     |     Version:  5.3.2
 Severity:  major                         |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------

Comment (by onlyonemj):

 Erm, not a hardcore coder but the multiple slashes link you gave looks
 like it strips extraneous forward slashes at the end of URLs which is
 expected behaviour in the case of folder paths. It doesn't address whether
 if WP is responsible for creating the http: prepend to the forward
 slashes? Is WordPress creating those or are the crawlers wrong? The
 http:// page appending right after root does not exist anywhere nor was
 ever created.

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


More information about the wp-trac mailing list