[ 
http://jira.codehaus.org/browse/MSITE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=212880#action_212880
 ] 

Dennis Lundberg edited comment on MSITE-273 at 3/5/10 4:58 PM:
---------------------------------------------------------------

The problem is in 
doxia-decoration-model:DefaultDecorationModelInheritanceAssembler.resolveBannerPaths()
 which calls convertPath() and after a couple of more calls we end up in 
plexus-utils:PathTool.getRelativeWebPath(). For two URLs that are equal the 
relative path between them is nothing. Thus the href on the banner is actually 
"" if you look at the source.

This happens when the parent and child has identical URLs.

We could resolve the problem by removing the <url> element from our parent POM, 
but that feels like cheating.

      was (Author: dennislundberg):
    The problem is in 
doxia-decoration-model:DefaultDecorationModelInheritanceAssembler.resolveBannerPaths()
 which calls convertPath() and after a couple of more calls we end up in 
plexus-utils:PathTool.getRelativeWebPath(). For two URLs that are equal the 
relative path between them is nothing. This the href on the banner is actually 
"" if you look at the source.

We could resolve the problem by removing the <url> element from our parent POM, 
but that feels like cheating.
  
> Wrong url in banner left url when page has more 2 sub directories
> -----------------------------------------------------------------
>
>                 Key: MSITE-273
>                 URL: http://jira.codehaus.org/browse/MSITE-273
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: relative links
>    Affects Versions: 2.0-beta-6
>         Environment: svn rev 599447
>            Reporter: Vincent Siveton
>             Fix For: 2.1.1
>
>
> Follow the following steps:
> 1. go to http://maven.apache.org/repository/index.html or 
> http://maven.apache.org/developers/committer-environment.html
> 2. and click on the Maven logo (top left)
> 3. the page is http://maven.apache.org/ which is the correct behaviour
> But try to reproduce the same with 2 sub directories in the url, like 
> http://maven.apache.org/guides/mini/guide-central-repository-upload.html
> The url is http://maven.apache.org/guides/ instead of http://maven.apache.org/

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