[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:03:40 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]:
 > I have never spoken about putting senseless links into a page. Absolute
 links which are senseless would point to the same 404 files. For example
 taking the absolute URL "http://example.com/blog/2009/name-of-
 post/image.jpg" to link to that nonexisting image would lead to a 404 as
 well. It is a question of creating URL that leads to a 200. That URL can
 be realtive or absoulte.

 But that URL is "fixed". It cannot be changed once you've created it,
 because it is actually saved into the post content itself. And it is used
 on multiple different pages, such as http://example.com/blog/,
 http://example.com/blog/category/some-cat, http://example.com/blog/2009/,
 http://example.com/blog/2009/name-of-post, etc, etc.

 The post content does not change, the location where that content is
 displayed does.

 > Can you imagine that it is possible to provide a valid realtive link?

 No, I cannot, please tell me what a valid relative link would be for an
 image displayed in all the locations where it can be displayed.

 > As in the first point: You can't compare an 404 leading links with a 200
 leading link. If the Post has the following Permalink:
 "http://example.com/supersite/special/blog/2009/name-of-post"
 >
 > > Here's two examples:
 > > IMG SRC="/blog/uploads/2009/image.jpg"
 > > IMG SRC="image.jpg"
 >
 > will lead to 404 both.

 No, in fact, it would not lead to a 404 on both, as the root-relative link
 can be made to work, while the non-root relative link can't.

 There is a fundamental difference there that you need to understand. I'm
 not making things up here, I really do know what I'm talking about. So
 please, just for a moment, pretend that I'm saying something you're not
 understanding instead of thinking that I'm arguing with you just because I
 have nothing better to do.

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


More information about the wp-trac mailing list