Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add context path to viewexpiredexception URL
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Feb 24, 2016
1 parent 5c0f867 commit b467142
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
@ExceptionHandler
public class ViewExpiredExceptionHandler extends AbstractExceptionHandler {
public void handleException(@Handles ExceptionEvent<ViewExpiredException> event) {
handle(event, LogLevel.Debug, "/error/viewexpiredexception", FacesMessage.SEVERITY_WARN,
handle(event, LogLevel.Debug, urlUtil.viewExpiredErrorPage(), FacesMessage.SEVERITY_WARN,
"jsf.YourSessionHasTimedOutPleaseTryAgain");
}
}
7 changes: 7 additions & 0 deletions zanata-war/src/main/java/org/zanata/util/UrlUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ public String genericErrorPage() {
return contextPath + "/error" + dswidQuery;
}

/**
* Get view expired url with dswid parameter
*/
public String viewExpiredErrorPage() {
return contextPath + "/error/viewexpiredexception" + dswidQuery;
}

/**
* Get sign-in url with dswid parameter
*/
Expand Down

0 comments on commit b467142

Please sign in to comment.