Links being "relativized" incorrectly.
--------------------------------------
Key: MSITE-422
URL: http://jira.codehaus.org/browse/MSITE-422
Project: Maven 2.x Site Plugin
Issue Type: Bug
Components: relative links
Affects Versions: 2.0.1
Reporter: Jason Smith
This also appears to be broken in 2.1-SNAPSHOT as the original entry date of
this JIRA. It was first discovered in 2.0, and also affects 2.0.1.
I have the following links in my site.xml. This is a multi-module project, but
this affects the top-level (parent) project documentation.
<links>
<item name="Groovy" href="http://groovy.codehaus.org/COM+Scripting/.." />
<item name="Scriptom Wiki"
href="http://groovy.codehaus.org/COM+Scripting" />
</links>
Here is the HTML produced:
<a href="../">Groovy</a> |
<a href="http://groovy.codehaus.org/COM+Scripting"
class="externalLink">Scriptom Wiki</a>
The first link is relativized. Incorrectly. My site-distribution is:
<site>
<id>codehaus.org.snapshots</id>
<name>Groovy Website</name>
<url>dav:https://dav.codehaus.org/groovy/modules/scriptom/SNAPSHOT/${project.version}</url>
</site>
Technically, the relative path should be "../../../../..". It would have
worked just fine if the HREF were "http://groovy.codehaus.org/".
Is it actually necessary to complicate the <links/> by relativizing the paths
whenever possible, or would it be simpler just to pass the original HREF
through unmodified?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira