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

                 Key: DOXIASITETOOLS-59
                 URL: http://jira.codehaus.org/browse/DOXIASITETOOLS-59
             Project: Maven Doxia Sitetools
          Issue Type: Bug
          Components: Site renderer
    Affects Versions: 1.2
            Reporter: Juien Enoch
            Priority: Minor
         Attachments: default-site.patch, site.vm

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.

-- 
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

        

Reply via email to