From d52795c66dcf68a4af0db8deefdf2a62e7e602a1 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Fri, 29 Mar 2019 17:04:07 +0000 Subject: [PATCH] Prevent storage of last page during breakout link handling Former-commit-id: dd119ea41f3748fb985ca4aa94099686a0bf2dde [formerly e93a2b92f9c807af390b49060e8a83f45a7ac790] Former-commit-id: de6f0053d0008b09ee747abed9a92372dfe7a791 --- www/js/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/js/app.js b/www/js/app.js index 29fd4539..dad537fd 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -2610,6 +2610,8 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'q', 'module' } //End of displayArticleInForm() function handleBreakoutLink() { + // Prevent storage of last page temporarily + params.rememberLastPage = false; var title = decodeURIComponent(params.lastPageVisit.replace(/@kiwixKey@.+/, "")); if (!params.handlingBreakoutLink && params.handlingBreakoutLink !== 0) { params.handlingBreakoutLink = true;