Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 420536

Summary: README.md renders relative and root-relative links incorrectly.
Product: [ECD] Orion Reporter: Mike Wilson <Mike_Wilson>
Component: ClientAssignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: simon_kaegi
Version: unspecified   
Target Milestone: 5.0 M1   
Hardware: PC   
OS: Mac OS X   
URL: https://jazz.net/jazz02/web/projects/Perfect%20Storm#action=com.ibm.team.workitem.viewWorkItem&id=98597
Whiteboard:

Description Mike Wilson CLA 2013-10-28 16:04:50 EDT
Many README.md files include images (and other content) using either relative or root-relative URLs, so for example, in a project there might be an "images" directory that would be referred to using markdown of this form:

![image](images/screenshot1.png)

or:

![image](/images/screenshot1.png)

Since Orion serves the README.md out of the user's workspace, any relative or root-relative URLs referenced in the markdown content need to be converted into URLs that will load the content out of the workspace. Relative URLs should load relative to the location of the README.md file, and root-relative URLs should load relative to the project's root.

Currently, this does not happen, so for example, if you were to look at the first example above from a README.md file loaded into a project at hub.jazz.net, the resulting URL would be:

https://hub.jazz.net/code/edit/images/screenshot1.png

and the second example would be:

https://hub.jazz.net/images/screenshot1.png
Comment 1 Simon Kaegi CLA 2014-06-26 16:25:08 EDT
This was fixed in the 5.0 release.