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

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 10 15:18:38 GMT 2009


#8838: relative  (image) links not showing properly in edit post/page
--------------------------+-------------------------------------------------
 Reporter:  ollivdl       |       Owner:  anonymous                  
     Type:  defect (bug)  |      Status:  new                        
 Priority:  normal        |   Milestone:  2.8                        
Component:  Optimization  |     Version:  2.7                        
 Severity:  normal        |    Keywords:  relative links - subroot WP
--------------------------+-------------------------------------------------
 Since there is an article on relative image links, I guess I might expect
 it 'should' be supported in editing pages/posts.

 I use them a lot, since the domain name of my server could be two
 different ones, also it is way much faster to compose in html/image adding
 window.

 So what I'm talking about?
 i use <a href="images/large/picture_name.jpg"><img
 src="images/small/picture_name.jpg" /></a>

 Also I would like to mention that the info on the WP.org is not mentioning
 the difference between e.g.
 /images/image_name.jpg --> resulting in webroot/images/image_name.jpg
 and
 images/image_name.jpg --> resulting in WordPress
 root/images/image_name.jpg

 The thing is I have my photo gallery in a own directory '/photo' of my
 webroot, running an own Wordpress on the side of the one in the root
 folder. having the index in /photo/index.php
  Using the WP in the subdirectory, I link to images using
 href"images/large/image_name.jpg". This results in a url towards
 http://mydomain.com/photo/images/large/image_name.jpg

 Now editing the posts with images linked starting with
 'images/image_name.jpg' don't show up in the diting, but the output is
 perfect. This results in errors of Apache telling me

 File does not exist: /Library/WebServer/Documents/photo/wp-
 admin/images/small

 It seems like the editor links it to wp-admin as root.
 Can this be solved? Or do I need to link everything (100 + imgs) like
 this:
  /photo/images/large/image_name.jpg

 I would have to type more in the futre then...

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


More information about the wp-trac mailing list