Updates to include additional parameters for redirect url (earlier, used getPath which did not consider parameters as already existing whereas addParams check to see whether parameters already exist or not)
This commit is contained in:
parent
c8c801a6ce
commit
496e225889
1 changed files with 3 additions and 2 deletions
|
@ -76,8 +76,9 @@ public class PostEditCleanupController extends FreemarkerHttpServlet{
|
||||||
//Try to redirect to the entityToReturnTo
|
//Try to redirect to the entityToReturnTo
|
||||||
ParamMap paramMap = new ParamMap();
|
ParamMap paramMap = new ParamMap();
|
||||||
paramMap.put("uri", entityToReturnTo);
|
paramMap.put("uri", entityToReturnTo);
|
||||||
paramMap.put("extra","true"); //for ie6
|
paramMap.put("extra","true"); //for ie6
|
||||||
String path = UrlBuilder.getPath(urlPattern,paramMap);
|
//If url already contains an ? then need to add extra params
|
||||||
|
String path = UrlBuilder.addParams(urlPattern, paramMap);
|
||||||
path += getPredicateAnchor( vreq, editConfig );
|
path += getPredicateAnchor( vreq, editConfig );
|
||||||
return new RedirectResponseValues( path );
|
return new RedirectResponseValues( path );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue