[wp-trac] [WordPress Trac] #17048: urls deliverd to the browser should be root-relative

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 4 23:15:26 UTC 2011


#17048: urls deliverd to the browser should be root-relative
--------------------------+------------------------------
 Reporter:  dmole         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by nacin):

 Root-relative URLs aren't really proper. /path/ might not be WordPress, it
 might be outside of the install. So really it's not much different than an
 absolute URL.

 Any relative URLs also make it significantly more difficult to perform
 transformations when the install is moved. The find-replace is going to be
 necessary in most situations, and having an absolute URL is ironically
 more portable for those reasons.

 As you said, absolute URLs are needed in numerous other places. Needing to
 add these in conditionally will add to processing, as well as introduce
 potential bugs (and incompatibilities with plugins).

 Unfortunately, the opinion of those threads are skewed in the direction
 you mention due to most of them not really understanding the problem or
 the design decision (nor are most of them active core contributors or core
 developers). I've tried to cover a bit of the design decision on wp-
 hackers before, and I've been able to locate this reply of mine (the first
 part, in particular):

 http://lists.automattic.com/pipermail/wp-hackers/2010-November/036195.html

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17048#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list