XX-10868: Internal error login link redirects to HTTP instead of HTTPS

- make restart app behave like app logout