Skip to content

Commit 26089a7

Browse files
authored
Merge pull request #30153 from nextcloud/backport/30141/stable21
[stable21] Reload page instead of file list when getting 401 authentification error
2 parents 5a47384 + 5aef34d commit 26089a7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/files/js/filelist.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2087,7 +2087,9 @@
20872087
this.hideMask();
20882088

20892089
if (status === 401) {
2090-
return false;
2090+
// We are not authentificated, so reload the page so that we get
2091+
// redirected to the login page while saving the current url.
2092+
location.reload();
20912093
}
20922094

20932095
// Firewall Blocked request?

0 commit comments

Comments
 (0)