If the user logs is success in i redirect him to the dashboard.
It used to work ok until i deploy it using tomcat.
now the url is http://localhost:8080/myWar/
so this:
window.location.href = "/dashboard";
redirects to http://localhost:8080/dashboard
and I get error 404. How do I redirect this dynamically ?