From c084756951b340fa7d30dffcddf1bc21f5ed68d2 Mon Sep 17 00:00:00 2001 From: Hugues Malphettes Date: Wed, 1 Jun 2011 08:59:32 +0000 Subject: [PATCH] clean up the redirection. git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3371 7e9141cc-0065-0410-87d8-b60c137991c4 --- .../console/EquinoxConsoleContinuationServlet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jetty-osgi/jetty-osgi-equinoxtools/src/main/java/org/eclipse/jetty/osgi/equinoxtools/console/EquinoxConsoleContinuationServlet.java b/jetty-osgi/jetty-osgi-equinoxtools/src/main/java/org/eclipse/jetty/osgi/equinoxtools/console/EquinoxConsoleContinuationServlet.java index 4c99ce0ff21..9cdf57cf844 100644 --- a/jetty-osgi/jetty-osgi-equinoxtools/src/main/java/org/eclipse/jetty/osgi/equinoxtools/console/EquinoxConsoleContinuationServlet.java +++ b/jetty-osgi/jetty-osgi-equinoxtools/src/main/java/org/eclipse/jetty/osgi/equinoxtools/console/EquinoxConsoleContinuationServlet.java @@ -85,7 +85,8 @@ public class EquinoxConsoleContinuationServlet extends HttpServlet implements On if (request.getParameter("action")!=null) doPost(request,response); else - response.sendRedirect("index.html"); + response.sendRedirect(request.getContextPath() + request.getServletPath() + + (request.getPathInfo() != null ? request.getPathInfo() : "") + "/index.html"); } // Handle Ajax calls from browser