Changing password doesn't proceed with a proper logout

Changing password from the user settings doesn't proceed with a proper logout which in turns result by letting the possibility to click on any buttong and end up on a Not Found page. The user then needs to go back to the website to see that he's logged out.

Expected behavior: Change your password -> get logged out -> refresh the page