Uploaded image for project: 'Maven Doxia Sitetools'
  1. Maven Doxia Sitetools
  2. DOXIASITETOOLS-59

Using a relative path to an image in a <poweredBy><logo> generates a wrong "src" value for HTML <img> tag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2
    • 1.3
    • Site renderer
    • None
    • Patch

    Description

      This happens only when a <bannerLeft> or <bannerRight> is also used.
      Then the logo image becomes the same than the banner image.
      (see attached site.xml)

      This problem comes from default-site.vm in poweredByLOgo macro:
      in calculation of relative path of $img code is following
      #set ( $img = $src.replaceAll( '
      ', '/' ) )
      But should be following
      #set ( $img = $img.replaceAll( '
      ', '/' ) )

      Please see proposed patch in attachment.

      Attachments

        1. site.vm
          20 kB
          Juien Enoch
        2. default-site.patch
          0.6 kB
          Juien Enoch

        Issue Links

          Activity

            People

              ltheussl Lukas Theussl
              julien_enoch Juien Enoch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: