You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by al...@apache.org on 2007/05/13 17:45:07 UTC

svn commit: r537602 - /incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/urlcompressing/UrlCompressingWebCodingStrategy.java

Author: almaw
Date: Sun May 13 08:45:06 2007
New Revision: 537602

URL: http://svn.apache.org/viewvc?view=rev&rev=537602
Log:
Make the URL compressor work properly.

Modified:
    incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/urlcompressing/UrlCompressingWebCodingStrategy.java

Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/urlcompressing/UrlCompressingWebCodingStrategy.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/urlcompressing/UrlCompressingWebCodingStrategy.java?view=diff&rev=537602&r1=537601&r2=537602
==============================================================================
--- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/urlcompressing/UrlCompressingWebCodingStrategy.java (original)
+++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/urlcompressing/UrlCompressingWebCodingStrategy.java Sun May 13 08:45:06 2007
@@ -124,6 +124,13 @@
 		{
 			url.append(params.getBehaviorId());
 		}
+		url.append(Component.PATH_SEPARATOR);
+		
+		// Add URL depth
+		if (params != null && params.getUrlDepth() != 0)
+		{
+			url.append(params.getUrlDepth());
+		}
 		return requestCycle.getOriginalResponse().encodeURL(url);
 	}
 }