--- a/src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java Fri Oct 23 12:26:08 2020 +0200 +++ b/src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java Fri Oct 23 12:38:20 2020 +0200 @@ -376,24 +376,6 @@ } } - private void forwardToFullView(HttpServletRequest req, HttpServletResponse resp) - throws IOException, ServletException { - - final String lightpitBundle = "localization.lightpit"; - final var mainMenu = List.of( - new MenuEntry(new ResourceKey(lightpitBundle, "menu.projects"), "projects/"), - new MenuEntry(new ResourceKey(lightpitBundle, "menu.users"), "teams/"), - new MenuEntry(new ResourceKey(lightpitBundle, "menu.languages"), "language/") - ); - for (var entry : mainMenu) { - if (Functions.fullPath(req).startsWith("/" + entry.getPathName())) { - entry.setActive(true); - } - } - req.setAttribute(Constants.REQ_ATTR_MENU, mainMenu); - req.getRequestDispatcher(SITE_JSP).forward(req, resp); - } - private String sanitizeRequestPath(HttpServletRequest req) { return Optional.ofNullable(req.getPathInfo()).orElse("/"); } @@ -412,7 +394,7 @@ case NONE: return; case HTML: - forwardToFullView(req, resp); + req.getRequestDispatcher(SITE_JSP).forward(req, resp); return; // TODO: implement remaining response types default: