Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-422

Links being "relativized" incorrectly.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.0.1
    • None
    • relative links
    • None

    Description

      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?

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ltheussl Lukas Theussl
            jasonsmith Jason Smith
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment