1.1 --- a/src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java Fri Oct 23 12:26:08 2020 +0200 1.2 +++ b/src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java Fri Oct 23 12:38:20 2020 +0200 1.3 @@ -376,24 +376,6 @@ 1.4 } 1.5 } 1.6 1.7 - private void forwardToFullView(HttpServletRequest req, HttpServletResponse resp) 1.8 - throws IOException, ServletException { 1.9 - 1.10 - final String lightpitBundle = "localization.lightpit"; 1.11 - final var mainMenu = List.of( 1.12 - new MenuEntry(new ResourceKey(lightpitBundle, "menu.projects"), "projects/"), 1.13 - new MenuEntry(new ResourceKey(lightpitBundle, "menu.users"), "teams/"), 1.14 - new MenuEntry(new ResourceKey(lightpitBundle, "menu.languages"), "language/") 1.15 - ); 1.16 - for (var entry : mainMenu) { 1.17 - if (Functions.fullPath(req).startsWith("/" + entry.getPathName())) { 1.18 - entry.setActive(true); 1.19 - } 1.20 - } 1.21 - req.setAttribute(Constants.REQ_ATTR_MENU, mainMenu); 1.22 - req.getRequestDispatcher(SITE_JSP).forward(req, resp); 1.23 - } 1.24 - 1.25 private String sanitizeRequestPath(HttpServletRequest req) { 1.26 return Optional.ofNullable(req.getPathInfo()).orElse("/"); 1.27 } 1.28 @@ -412,7 +394,7 @@ 1.29 case NONE: 1.30 return; 1.31 case HTML: 1.32 - forwardToFullView(req, resp); 1.33 + req.getRequestDispatcher(SITE_JSP).forward(req, resp); 1.34 return; 1.35 // TODO: implement remaining response types 1.36 default: