You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Allen (JIRA)" <ji...@codehaus.org> on 2006/11/05 19:40:31 UTC

[jira] Commented: (MSITE-159) Absolute URI rendered as relative URI if absolute URI related to domain of POM URI

    [ http://jira.codehaus.org/browse/MSITE-159?page=comments#action_79349 ] 
            
John Allen commented on MSITE-159:
----------------------------------

relative paths were partially supported in beta-4 however the logic did not resolve sibling paths with a common ancestor. Maybe offline generation (i.e. preserving URLs) should be a command line option as relatives make it possible to do many things such as stage a web site and check that links are valid BEFORE deployment to the target location.

> Absolute URI rendered as relative URI if absolute URI related to domain of POM URI
> ----------------------------------------------------------------------------------
>
>                 Key: MSITE-159
>                 URL: http://jira.codehaus.org/browse/MSITE-159
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>            Reporter: Ted Husted
>
> Under site-beta5 
> if the POM references a URI like 
>   <url>http://struts.apache.org</url>
> absolute URLs used in the site.xml file are converted to relative references. 
> For example a reference to to "http://struts.apache.org/1.x" becomes "1.x",  and a reference to
> just "http://struts.apache.org" becomes an empty string.  
> If the documentation is being used offline, there are many cases when we want to refer people back to the website, to be sure the current information is used. The best use case is a download page that determines the mirror via CGI. 
> Another use case is referring to a sister site in the domain, that might refer to another version. If used locally, the other site might not be in the relative location. 
> Switching back to beta4 cures the behavior, and absolute URIs remain absolute, as expected. 

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