You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Cameron Jones (JIRA)" <ji...@codehaus.org> on 2007/11/06 15:58:35 UTC

[jira] Updated: (MSITE-269) Urls rewritten when they contain the project urls' hostname

     [ http://jira.codehaus.org/browse/MSITE-269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cameron Jones updated MSITE-269:
--------------------------------

    Attachment: MSITE-269.zip

Yeah but the problem is that i don't want the urls to be relative. I have the following environments which i want to link to in the site:

build - http://localhost/build
staging - http://localhost/staging
prod - http://localhost/prod

And i want to deploy my site under:

http://localhost/project/test/site

I want the environment links to be static as they aren't related to the site itself and are there only for navigation but instead they are rewritten to:

http://localhost/project/test/site/build
http://localhost/project/test/site/staging
http://localhost/project/test/site/prod

I've included a test project which displays this.

> Urls rewritten when they contain the project urls' hostname
> -----------------------------------------------------------
>
>                 Key: MSITE-269
>                 URL: http://jira.codehaus.org/browse/MSITE-269
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>            Reporter: Cameron Jones
>            Assignee: Dennis Lundberg
>         Attachments: MSITE-269.zip, pom.xml, site.xml
>
>
> Urls in the site.xml file are being rewritten if they contain the hostname of the project url. For example:
> pom.xml:
> <url>http://208.75.85.243</url>
> ...
> <site>
>     <id>test.site</id>
>     <url>file:///srv/www/test/site</url>
> </site>
> ...
> site.xml:
> <item name="About" href="http://208.75.85.243/index.html" />
> Results in the following link for the About page which is incorrect and includes the deployment location instead of the url:
> http://208.75.85.243/test/site/index.html

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