From 292ce75cc224690e0ea5d483c7197bb8c3d75031 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 19 Feb 2023 19:58:15 +0000 Subject: [PATCH] return to previous url after login --- copyparty/httpcli.py | 4 ++-- copyparty/web/browser.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 784359ca..cb1884c4 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -784,8 +784,8 @@ class HttpCli(object): if "hc" in self.uparam: return self.tx_svcs() - if "h" in self.uparam: - return self.tx_mounts() + if "h" in self.uparam: + return self.tx_mounts() # conditional redirect to single volumes if self.vpath == "" and not self.ouparam: diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 47060f32..30fbf873 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -5805,7 +5805,7 @@ function apply_perms(res) { ebi('acc_info').innerHTML = '' + srvinf + '' + (acct != '*' ? '' + L.logout + acct + '' : - 'Login'); + 'Login'); var o = QSA('#ops>a[data-perm]'); for (var a = 0; a < o.length; a++) {