[wp-trac] Re: [WordPress Trac] #6599: Inpage URLs can be realtive
instead of being always absolute.
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 15 17:12:52 GMT 2008
#6599: Inpage URLs can be realtive instead of being always absolute.
-------------------------+--------------------------------------------------
Reporter: hakre | Owner: anonymous
Type: enhancement | Status: closed
Priority: normal | Milestone: 2.7
Component: General | Version:
Severity: normal | Resolution: wontfix
Keywords: |
-------------------------+--------------------------------------------------
Changes (by Otto42):
* status: new => closed
* resolution: => wontfix
Comment:
This is incorrect. Replacing these absolute URLs with relative ones will
break all non-default permalink systems.
Recognize that relative URLs work in one of two ways:
* from root
* from the current URL
Using root level relative URLs would break WordPress's ability to be
easily installed in a subdirectory of a site.
Using current URL relative links breaks permalinks, because the point of
permalinks is that they bear no relationship to the underlying file system
structure of the site. What is a single relative link to, say, a CSS file
that works when the current URL is both http://example.com/blog/ and
http://example.com/blog/2008/04/15/single-post/ ?
No, we use absolute URLs for a very good reason, and those absolute URLs
are built on the fly from the settings. The site remains portable when
coded correctly (using bloginfo('url') calls and similar to display the
root URL instead of hardcoding it.
Closing this as invalid.
--
Ticket URL: <http://trac.wordpress.org/ticket/6599#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list