diff --git a/lib/exceptionHandlers.js b/lib/exceptionHandlers.js index 6475f8694..cbf441d2d 100644 --- a/lib/exceptionHandlers.js +++ b/lib/exceptionHandlers.js @@ -14,7 +14,7 @@ exports.handlerDict = (_a = {}, _a.sent(); features.navigator.navigateTo({ url: '/mobile/login', - }); + }, undefined, true); return [2 /*return*/]; } }); @@ -27,7 +27,7 @@ exports.handlerDict = (_a = {}, _a.sent(); features.navigator.navigateTo({ url: '/mobile/login', - }); + }, undefined, true); return [2 /*return*/]; } }); diff --git a/src/exceptionHandlers.ts b/src/exceptionHandlers.ts index 7bf1037d1..f10279e22 100644 --- a/src/exceptionHandlers.ts +++ b/src/exceptionHandlers.ts @@ -14,14 +14,22 @@ export const handlerDict: ExceptionHandlerDict< GeneralFeatures> = { [OakUnloggedInException.name]: async (features) => { await features.token.logout(); - features.navigator.navigateTo({ - url: '/mobile/login', - }); + features.navigator.navigateTo( + { + url: '/mobile/login', + }, + undefined, + true + ); }, [OakTokenExpiredException.name]: async (features) => { await features.token.logout(); - features.navigator.navigateTo({ - url: '/mobile/login', - }); + features.navigator.navigateTo( + { + url: '/mobile/login', + }, + undefined, + true + ); } } \ No newline at end of file