From 1098ba102ee7f3f95c07e799bb497e56291b1238 Mon Sep 17 00:00:00 2001 From: tkellner Date: Thu, 8 Sep 2011 13:41:08 +0000 Subject: Correct redirection git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@983 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- BKUOnline/src/main/webapp/404.jsp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'BKUOnline') 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); %> -- cgit v1.2.3