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

Absolute links item href's are stripped to become relative

    XMLWordPrintableJSON

Details

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

    Description

      When I add the follwing to site.xml:

       
      <links>
        <item name="BLAH" href="http://xyz.com/blah"/>
      </links>
      

      The generated html output is:

       
      <a href="blah">BLAH</a>
      

      This is wrong, if I stipulate "http://*" this should be an external (and absolute link), the generated html should have an absolute href url, like this:

       
      <a href="http://xyz.com/blah">BLAH</a>
      

      The conditions when this relative href translation occurs is when I have have ${project.url}=="http://xyz.com" in my pom.xml, like this:

       
      <project>
        ...
        <url>http://xyz.com</url>
        ...
      </project>
      

      Attachments

        Issue Links

          Activity

            People

              ltheussl Lukas Theussl
              ahhughes Andrew Hughes
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: