Redirect to the login page and back if unauthorized after inital loading
Currently, users are redirected to the login page and back to the previous route after successful login when their authentication expires while the app is already loaded. This is usually the case if the app has been inactive (e.g. device standby) for multiple hours.
But if the authentication expired and the user reloads the app, they are logged out and automatically logged in as a guest if the page requires authentication. This can be confusing and in most cases is not helpful for a user with a registered account. Instead, the behavior should be the same as the one when the app is not reloaded, i.e. redirecting to the login page and back.
Edited by Daniel Gerhardt