relative (image) links not showing properly in edit post/page
|Reported by:||ollivdl||Owned by:||anonymous|
|Severity:||minor||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
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:
I would have to type more in the futre then...
Change History (4)
- Component changed from Optimization to Administration
- Milestone changed from 2.8 to 2.9
- Type changed from defect (bug) to feature request
- Severity changed from normal to minor
- Type changed from feature request to enhancement