From f72b1c271a93bb374e1fd2cdde29f324a5be054f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 May 2018 22:51:24 +0300 Subject: reader: return back to favorites view on exit if called from it --- js/read.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/read.js b/js/read.js index a2ce59d..39d7929 100644 --- a/js/read.js +++ b/js/read.js @@ -247,7 +247,7 @@ function save_and_close() { if (navigator.onLine) { $.post("backend.php", { op: "storelastread", id: $.urlParam("id"), page: currentPage, cfi: currentCfi }, function(data) { - window.location = "index.php"; + window.location = $.urlParam("rt") ? "index.php?mode=" + $.urlParam("rt") : "index.php"; }); } else { window.location = "index.php"; -- cgit v1.2.3