[wp-trac] [WordPress Trac] #21602: redirect_canonical can lead to infinite loop on index navigation if site url is not all lower case

WordPress Trac noreply at wordpress.org
Sat Jan 9 08:52:19 UTC 2016


#21602: redirect_canonical can lead to infinite loop on index navigation if site
url is not all lower case
--------------------------------------------+--------------------
 Reporter:  sreedoap                        |       Owner:
     Type:  defect (bug)                    |      Status:  new
 Priority:  normal                          |   Milestone:  4.4.2
Component:  Canonical                       |     Version:
 Severity:  normal                          |  Resolution:
 Keywords:  needs-unit-tests needs-refresh  |     Focuses:
--------------------------------------------+--------------------

Comment (by dd32):

 [attachment:21602.diff] is an attempt at fixing this, unfortunately our
 Canonical unit tests are not designed to test the hostname (It
 specifically excludes it..) so the unit tests are a little messy.

 Hopefully someone else can see a way to fix that.


 Another option which we have, is to force the hostname in `home` and
 `site_url` being lower-case, which makes a lot of sense to me.
 Capitalizing the domain adds no benefit, as hostnames are inherently
 lower-case and most browsers treat them as such.

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


More information about the wp-trac mailing list