Explorar o código

fix #1620 remove context path

Shinsuke Sugaya %!s(int64=7) %!d(string=hai) anos
pai
achega
2a1f80a089

+ 1 - 2
src/main/java/org/codelibs/fess/app/web/base/FessSearchAction.java

@@ -226,8 +226,7 @@ public abstract class FessSearchAction extends FessBaseAction {
     }
 
     protected HtmlResponse redirectToRoot() {
-        final String contextPath = request.getServletContext().getContextPath();
-        return systemHelper.getRedirectResponseToRoot(newHtmlResponseAsRedirect(StringUtil.isBlank(contextPath) ? "/" : contextPath));
+        return systemHelper.getRedirectResponseToRoot(newHtmlResponseAsRedirect("/"));
     }
 
     protected HtmlNext virtualHost(final HtmlNext path) {