Hi,
I’m facing an issue when a user logs out of the application, its current route is somehow stored, and then, when he logs in again, instead of arriving on the welcome page of the app, he is redirected to it’s previous URL (before logout).
I played a bit with the custom request cache, but doesn’t seems to matter a lot…
Has someone an idea on how to force the login to the welcome page ?
Although I do like the default use to continue to the previous path when i.e. the server has restarted for some reason.
So the question is how you do the logout.
In my case I do the logout like this:
So technically it doesn’t hold the last location, since the last location is ‘’.
Although the way I do the logout I get a brief “Session invalidated” error message which I would like to have removed but haven’t figured out how to do it.
What is your logout implementation?
p.s. the window.close() is for when the application runs as a PWA on an Android and by logging out it also closes down the application (have really tested it though, but doesn’t hurt the Windows browsers!)
I think the trick is to force the navigation to a specific route after login, but how do you achieve this ?
I’m using a custom login form and don’t really know how to catch this login event.
Ohh I see, you are using Spring Security, while I am using plain Vaadin J2EE (no spring everything custom/hand made!).
No idea about the login but I would try in your case the following at logout