I have several pages that have the same master template, which contains the header with a log out button. When I try to log out from all pages it works correctly except for one - the one which has request parameters in its URL.
After logout (session invalidation), I'm redirecting back to the login page as follows:
return "/login.xhtml?faces-redirect=true";
When I press logout on URLs like this,
http://localhost:8080/WPA_MOVIEDATABASE/app/index.xhtml
then the redirect works fine and I end up in:
http://localhost:8080/WPA_MOVIEDATABASE/login.xhtml
However, when I press logout on URLs with a request parameter like this,
http://localhost:8080/WPA_MOVIEDATABASE/app/movie.xhtml?id=135
then I'm redirected back to the same URL without the query string:
http://localhost:8080/WPA_MOVIEDATABASE/app/movie.xhtml
Am I doing the redirecting wrong or is this the normal behivour for these kind of URLs?