Revision: 412
http://svn.sourceforge.net/stripes/?rev=412&view=rev
Author: tfenne
Date: 2006-09-25 17:54:28 -0700 (Mon, 25 Sep 2006)
Log Message:
-----------
Fix for STS-272: RedirectResolution creates paths starting // if the context
path is /
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
2006-09-26 00:49:22 UTC (rev 411)
+++ trunk/stripes/src/net/sourceforge/stripes/action/RedirectResolution.java
2006-09-26 00:54:28 UTC (rev 412)
@@ -153,7 +153,7 @@
// Prepend the context path if required
String url = getUrl();
- if (this.prependContext) {
+ if ( this.prependContext && !"/".equals(request.getContextPath()) ) {
url = request.getContextPath() + url;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development