Changing postEditCleanUp.jsp to handle cancel when resourceToRedirectTo is set.
This commit is contained in:
parent
880a54c7f4
commit
98ce002973
1 changed files with 8 additions and 3 deletions
|
@ -34,11 +34,16 @@
|
|||
predicateLocalName = prop.getLocalName();
|
||||
}
|
||||
|
||||
if( editConfig.getEntityToReturnTo() != null && editConfig.getEntityToReturnTo().startsWith("?") ){
|
||||
resourceToRedirectTo = (String)request.getAttribute("entityToReturnTo");
|
||||
if( editConfig.getEntityToReturnTo() != null && editConfig.getEntityToReturnTo().startsWith("?") ){
|
||||
resourceToRedirectTo = (String)request.getAttribute("entityToReturnTo");
|
||||
}else{
|
||||
resourceToRedirectTo = editConfig.getEntityToReturnTo();
|
||||
}
|
||||
}
|
||||
|
||||
//if there is no entity to return to it is likely a cancel
|
||||
if( resourceToRedirectTo == null || resourceToRedirectTo.length() == 0 )
|
||||
resourceToRedirectTo = editConfig.getSubjectUri();
|
||||
|
||||
}
|
||||
|
||||
//set up base URL
|
||||
|
|
Loading…
Add table
Reference in a new issue