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

Error when using an absolute URL in a menu item in site.xml

    XMLWordPrintableJSON

Details

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

    Description

      When defining the following menu item in site.xml, then the last menu item is not rendered properly as an absolute URL.
      Its href is empty:

      <menu name="Maven 2.0">
      <item name="APT Format" href="format.html"/>
      <item name="FAQ" href="faq.html"/>
      <item name="Xdoc Example" href="xdoc.html"/>
      <item name="Maven 2" href="http://maven.apache.org/maven2/"/>
      </menu>

      The problem seems to be rooted somewhere in $decoration.body.menus.

      The problem does not occur for links!

      Steps to reproduce:

      • Create a new maven project using the site Archetype.
      • Modify the menu section in the site.xml as shown above by adding an absolute URL.
      • run mvn clean
      • run mvn site

      Check the absolute URL.

      Attachments

        Issue Links

          Activity

            People

              dennisl@apache.org Dennis Lundberg
              alexanderhars Alexander Hars
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: