Merge pull request #30152 from nextcloud/backport/30141/stable22

[stable22] Reload page instead of file list when getting 401 authentification error
This commit is contained in:
MichaIng 2021-12-08 14:33:09 +01:00 committed by GitHub
commit bb44a150a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2232,7 +2232,9 @@
this.hideMask();
if (status === 401) {
return false;
// We are not authentificated, so reload the page so that we get
// redirected to the login page while saving the current url.
location.reload();
}
// Firewall Blocked request?