Prevent storage of last page during breakout link handling

Former-commit-id: dd119ea41f3748fb985ca4aa94099686a0bf2dde [formerly e93a2b92f9c807af390b49060e8a83f45a7ac790]
Former-commit-id: de6f0053d0008b09ee747abed9a92372dfe7a791
This commit is contained in:
Jaifroid 2019-03-29 17:04:07 +00:00
parent 80c343362a
commit d52795c66d

View File

@ -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;