summaryrefslogtreecommitdiff
path: root/BKUOnline/src/main/webapp
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2011-09-08 13:41:08 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2011-09-08 13:41:08 +0000
commit1098ba102ee7f3f95c07e799bb497e56291b1238 (patch)
treebb9bcb58ed9026f6f82639f923c3e0f94311a3c3 /BKUOnline/src/main/webapp
parent1250843ff474520f48a64907e8b6e0513af47171 (diff)
downloadmocca-1098ba102ee7f3f95c07e799bb497e56291b1238.tar.gz
mocca-1098ba102ee7f3f95c07e799bb497e56291b1238.tar.bz2
mocca-1098ba102ee7f3f95c07e799bb497e56291b1238.zip
Correct redirection
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@983 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUOnline/src/main/webapp')
-rw-r--r--BKUOnline/src/main/webapp/404.jsp8
1 files changed, 7 insertions, 1 deletions
diff --git a/BKUOnline/src/main/webapp/404.jsp b/BKUOnline/src/main/webapp/404.jsp
index aac3c15d..f5b97295 100644
--- a/BKUOnline/src/main/webapp/404.jsp
+++ b/BKUOnline/src/main/webapp/404.jsp
@@ -1,3 +1,9 @@
<%
- response.sendRedirect("help/404.html");
+ String redirectURL = pageContext.getServletContext().getContextPath();
+ if (pageContext.getErrorData().getRequestURI().contains("/help/"))
+ redirectURL += "/help/404h.html";
+ else
+ redirectURL += "/help/404.html";
+
+ response.sendRedirect(redirectURL);
%>