incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r610718 - /incubator/sling/trunk/sling/sample/src/main/java/org/apache/sling/sample/Navigation.java
Date Thu, 10 Jan 2008 08:39:36 GMT
Author: cziegeler
Date: Thu Jan 10 00:39:35 2008
New Revision: 610718

URL: http://svn.apache.org/viewvc?rev=610718&view=rev
Log:
Add context path to links.

Modified:
    incubator/sling/trunk/sling/sample/src/main/java/org/apache/sling/sample/Navigation.java

Modified: incubator/sling/trunk/sling/sample/src/main/java/org/apache/sling/sample/Navigation.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/sample/src/main/java/org/apache/sling/sample/Navigation.java?rev=610718&r1=610717&r2=610718&view=diff
==============================================================================
--- incubator/sling/trunk/sling/sample/src/main/java/org/apache/sling/sample/Navigation.java
(original)
+++ incubator/sling/trunk/sling/sample/src/main/java/org/apache/sling/sample/Navigation.java
Thu Jan 10 00:39:35 2008
@@ -85,7 +85,7 @@
                 if (page.getPath().equals(requestPath)) {
                     pw.print(title);
                 } else {
-                    pw.print("<a href=\"" + page.getPath() + ".html\">");
+                    pw.print("<a href=\"" + request.getContextPath() + page.getPath()
+ ".html\">");
                     pw.print(title);
                     pw.print("</a>");
                 }



Mime
View raw message