diff --git a/package-lock.json b/package-lock.json index 1f02b40b6..15866eec4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "trilium", - "version": "0.59.3", + "version": "0.59.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "trilium", - "version": "0.59.3", + "version": "0.59.4", "hasInstallScript": true, "license": "AGPL-3.0-only", "dependencies": { diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js index d438bba4b..60f7b34a3 100644 --- a/src/public/app/widgets/note_tree.js +++ b/src/public/app/widgets/note_tree.js @@ -834,11 +834,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { await this.filterHoistedBranch(); - const activeNode = await this.getNodeFromPath(appContext.tabManager.getActiveContextNotePath()); - - if (activeNode) { - activeNode.setActive({noEvents: true, noFocus: false}); - } + // don't activate the active note, see discussion in https://github.com/zadam/trilium/issues/3664 } async expandTree(node = null) { diff --git a/src/routes/login.js b/src/routes/login.js index 9dc9075e7..480ffae86 100644 --- a/src/routes/login.js +++ b/src/routes/login.js @@ -76,7 +76,7 @@ function login(req, res) { // note that logged IP address is usually meaningless since the traffic should come from a reverse proxy log.info(`WARNING: Wrong password from ${req.ip}, rejecting.`); - res.render('login', { + res.status(401).render('login', { failedAuth: true, assetPath: assetPath });