.
+ * #L%
+ */
+
+file = new File(basedir, 'target/site/aggregate-third-party-report.html');
+assert file.exists();
+content = file.text;
+assert !content.contains('the project has no dependencies.');
+assert !content.contains('/third-party-report.html#');
+assert content.contains('commons-logging:commons-logging:1.1.1');
+assert content.contains('The Apache Software License, Version 2.0 | '); // TODO Should be a link
+assert content.contains('Back to top');
+
+file = new File(basedir, 'target/site/third-party-report.html');
+assert !file.exists();
+
+return true;
diff --git a/src/main/java/org/codehaus/mojo/license/AbstractLicenseReportRenderer.java b/src/main/java/org/codehaus/mojo/license/AbstractLicenseReportRenderer.java
index baf033347..ceca104b0 100644
--- a/src/main/java/org/codehaus/mojo/license/AbstractLicenseReportRenderer.java
+++ b/src/main/java/org/codehaus/mojo/license/AbstractLicenseReportRenderer.java
@@ -217,7 +217,7 @@ else if ( details.hasThirdPartyLicenses() )
sink.tableCell();
String gav = getGAV( details );
- sink.link( "./third-party-report.html#" + gav );
+ sink.link( "#" + gav );
sink.text( gav );
sink.link_();
diff --git a/src/main/java/org/codehaus/mojo/license/ThirdPartyReportRenderer.java b/src/main/java/org/codehaus/mojo/license/ThirdPartyReportRenderer.java
index 15f0f2090..a7927b1f0 100644
--- a/src/main/java/org/codehaus/mojo/license/ThirdPartyReportRenderer.java
+++ b/src/main/java/org/codehaus/mojo/license/ThirdPartyReportRenderer.java
@@ -261,7 +261,7 @@ private void renderThirdPartyDetail( ThirdPartyDetails detail )
sink.sectionTitle2_();
renderThirdPartyDetailTable( detail );
- sink.link( "./third-party-report.html#" + getText( "report.overview.title" ) );
+ sink.link( "#" + getText( "report.overview.title" ) );
sink.text( getText( "report.back.to.top.page" ) );
sink.link_();
sink.lineBreak();