From 90f5713d4a053c634e6c76912b188dc5508a14b1 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 23 May 2017 18:09:30 +0200 Subject: [PATCH] Fix an issue with the search bar redirecting to incorrect location --- www/drive/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/drive/main.js b/www/drive/main.js index 861136454..5343bd829 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -1771,7 +1771,8 @@ define([ if (parentPath) { $a = $('').text(Messages.fm_openParent).click(function (e) { e.preventDefault(); - parentPath.pop(); + if (filesOp.isInTrashRoot(parentPath)) { parentPath = [TRASH]; } + else { parentPath.pop(); } module.displayDirectory(parentPath); }); } @@ -1823,6 +1824,7 @@ define([ displayDirectory(parentPath, true); return; } + if (!isSearch) { delete APP.Search.oldLocation; } module.resetTree();