Skip to content

Commit

Permalink
Fix welcome-page-redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgrefer committed Feb 5, 2025
1 parent 47c6e15 commit a7a0e43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class WelcomePageServlet extends GenericServlet {
@Override
public void service(ServletRequest req, ServletResponse res) throws IOException {
if (res instanceof HttpServletResponse httpServletResponse) {
httpServletResponse.sendRedirect("/index.xhtml");
httpServletResponse.sendRedirect(req.getServletContext().getContextPath() + "/index.xhtml");
}
}
}

0 comments on commit a7a0e43

Please sign in to comment.