diff --git a/src/main/java/controller/InvitePatient.java b/src/main/java/controller/InvitePatient.java index e0654cc..dbf9dc9 100644 --- a/src/main/java/controller/InvitePatient.java +++ b/src/main/java/controller/InvitePatient.java @@ -18,7 +18,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response) HttpSession session = request.getSession(); model.service.registration.Registration registration=new Registration(); registration.invitePatient((Integer) session.getAttribute("id"), request.getParameter("email"), request.getParameter("nome"), request.getParameter("cognome")); - response.sendRedirect("JSP/homeTherapist.jsp"); + response.sendRedirect(request.getContextPath() + "/JSP/homepageTherapist.jsp"); } } \ No newline at end of file