Redirect to root url?

hi guys i have a simple login application.whenever a user login to the app, a view is shown and the url look something like below

localhost:8080/app/#!loogedin what i wanted to do whenever user logout, the application should load the root url something like this

localhost:8080/app/ what should i do now.

As you anyhow what to end and clear up the session when doing logout, you can just do getSesstion().close() or VaadinSession.getCurrent().close(). If you have not set the logout URL, it simply reloads the UI with the base URL.