[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 28 16:10:49 GMT 2009
#6599: Inpage URLs can be realtive instead of being always absolute.
-----------------------------+----------------------------------------------
Reporter: hakre | Owner: anonymous
Type: feature request | Status: closed
Priority: normal | Milestone: Future Release
Component: General | Version: 2.7
Severity: normal | Resolution: invalid
Keywords: |
-----------------------------+----------------------------------------------
Comment(by Otto42):
Replying to [comment:9 hakre]:
> Well, I do not like to have that much focus on the Noob argument but
more in the arguments for using realtive links:
>
> - There is actually no argument for or against realative vs. absolute.
False, there are situations where absolute links make more sense. Like the
one I'm describing now, for example.
> - All links are absolute at least for a user using a website.
That doesn't make any sense. A link is either relative or absolute. It
makes no difference who the user is.
> - The website itself can therefore provide relative links.
> - There is no need to have absolute links (only) in the output from
server-side.
> - There is _absolutely_ no need to have absolute links hardcoded in
database data. Infact, this leads to problems (as documented).
So, you want to make all links in posts dynamic in some way, so that
instead of having the link in the post itself (as in HTML), you have
something else and then replace it with the relative link as the post is
displayed?
Because I have to vote a big -1000000 to that idea. The idea that the post
can be altered on display is one thing, but to needlessly abstract it just
for the sake of providing relative links instead of absolute ones, when
absolute ones work perfectly fine, strikes me as a bit too much. It's like
swatting a fly with an AK-47.
> - Because there is no need that there must be absolute links in the
output, it is more wise to handle relative URIs in (database) data to
convert them to links useable to (the current and often changing) Blog
configuration.
Why are relative links preferred? I can think of no sensible reason to
care whether they're absolute or relative, as long as the user sees the
bloody page in the end. The only problem with them is that it makes moving
the blog URLs slightly more difficult, but that's extremely minor by
comparison to abstracting out the entire post content structure in order
to make all links dynamically generated.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/6599#comment:11>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list