[wp-trac] Re: [WordPress Trac] #8838: relative (image) links not showing properly in edit post/page

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 16 20:19:35 GMT 2009


#8838: relative  (image) links not showing properly in edit post/page
-----------------------------------------+----------------------------------
 Reporter:  ollivdl                      |        Owner:  anonymous
     Type:  enhancement                  |       Status:  new      
 Priority:  normal                       |    Milestone:  2.9      
Component:  Administration               |      Version:  2.7      
 Severity:  minor                        |   Resolution:           
 Keywords:  relative links - subroot WP  |  
-----------------------------------------+----------------------------------
Changes (by ollivdl):

  * type:  feature request => enhancement
  * severity:  normal => minor

Comment:

 == conclusion ==

 As far as I can conclude:
 links to images should start with '/' to have the image always showing. In
 the website as well as in wp's admin.

 image links should be set with the webroot in mind (see below)

 ----

 '''starting without '/'' - the relative link'' (the start of the
 confusion)

 WordPress outputs the link into the website using its own rootfolder as
 the root for the link.

 ! This doesn't happen with the admin menu, hence the topic
 neither if having set the permalinks, as I just find out.

 e.g. images/image.jpg results in (whatever the root is of
 wordpress)/images/image.jpg also if wordpress resides in a own subfolder
 of the webroot


 '''starting a relative link with '/''''

 Is resolved as a link starting from apache's webroot, in every case wheter
 or not WordPress resides in a subfolder of the webservers root

 so having the root of WordPress in a subfolder of Apache's root, like in
 my case /photo, relative links should include this /photo in every
 relative link made

 if files are in the rootfolder of WordPress.
 So
 WordPress in /photo
 files in /photo/images

 links to files should be written as /photo/images/image.jpg

 quite boring, but it is yet a topic...
 Sorry for wasting time =)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8838#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list