Author: almaw
Date: Thu Jan 25 14:24:53 2007
New Revision: 500021

URL: http://svn.apache.org/viewvc?view=rev&rev=500021
Log:
Move to using relative URLs.

Modified:
    
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/WicketFilter.java

Modified: 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/WicketFilter.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/WicketFilter.java?view=diff&rev=500021&r1=500020&r2=500021
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/WicketFilter.java
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/protocol/http/WicketFilter.java
 Thu Jan 25 14:24:53 2007
@@ -308,19 +308,20 @@
                        }
                }
 
-               if (filterPath != null)
+               if (filterPath != null && filterPath.length() > 0 && 
!path.endsWith("/"))
                {
-                       if (!path.endsWith("/"))
-                       {
-                               path = path + "/" + filterPath;
-                       }
-                       else
-                       {
-                               path = path + filterPath;
-                       }
+                       path += "/" + filterPath;
                }
                
                return rootPath = path;
+       }
+       
+       /**
+        * @return Path for the filter
+        */
+       public String getFilterPath()
+       {
+               return filterPath;
        }
 
        /**


Reply via email to