Issue Details (XML | Word | Printable)

Key: MSITE-269
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Dennis Lundberg
Reporter: Cameron Jones
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Site Plugin

Urls rewritten when they contain the project urls' hostname

Created: 31/Oct/07 03:53 PM   Updated: 06/Nov/07 03:07 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive MSITE-269.zip (3 kB)
2. XML File pom.xml (1 kB)
3. XML File site.xml (0.7 kB)

Issue Links:
Duplicate
 

Testcase included: yes


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dennis Lundberg added a comment - 04/Nov/07 08:18 AM
The rewriting of URLs is intended. However the links do not contain the deploy location. If you have a look at the source of the generated html files you will see that the URLs have been rewritten so that they are relative.

Cameron Jones added a comment - 06/Nov/07 08:58 AM
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.


Dennis Lundberg added a comment - 06/Nov/07 03:07 PM
Please make any comments you might have regarding this in MSITE-159 instead.