SPR-7471 - Regression in redirect URL encoding

This commit is contained in:
Arjen Poutsma
2010-08-19 08:54:42 +00:00
parent 061b2c91a0
commit 001d676dec
2 changed files with 8 additions and 2 deletions

View File

@@ -135,6 +135,12 @@ public class RedirectViewTests {
String expectedUrlForEncoding = "http://url.somewhere.com/test.htm" + "?" + key + "=" + val + "#myAnchor";
doTest(model, url, false, expectedUrlForEncoding);
}
@Test
public void contextRelativeQueryParam() throws Exception {
String url = "/test.html?id=1";
doTest(new HashMap<String, Object>(), url, true, url);
}
@Test
public void twoParams() throws Exception {