Revision: 970
http://stripes.svn.sourceforge.net/stripes/?rev=970&view=rev
Author: bengunter
Date: 2008-10-08 03:03:27 +0000 (Wed, 08 Oct 2008)
Log Message:
-----------
Fix for STS-611. Always prepend context path if prependContext is true.
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/action/RedirectResolution.java
Modified:
trunk/stripes/src/net/sourceforge/stripes/action/RedirectResolution.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/action/RedirectResolution.java
2008-10-08 02:55:48 UTC (rev 969)
+++ trunk/stripes/src/net/sourceforge/stripes/action/RedirectResolution.java
2008-10-08 03:03:27 UTC (rev 970)
@@ -164,11 +164,11 @@
addParameter(StripesConstants.URL_KEY_FLASH_SCOPE_ID, flash.key());
}
- // Prepend the context path if required
+ // Prepend the context path if requested
String url = getUrl(request.getLocale());
if (prependContext) {
String contextPath = request.getContextPath();
- if (contextPath.length() > 1 && !url.startsWith(contextPath + "/"))
+ if (contextPath.length() > 1)
url = contextPath + url;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development