Skip to content

Commit 845ce24

Browse files
caddoosgiehl
authored andcommitted
Add additional check for refresh to make sure they are in the app
1 parent 041ff6b commit 845ce24

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

plugins/CoreHome/vue/src/AjaxHelper/AjaxHelper.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,9 @@ export default class AjaxHelper<T = any> { // eslint-disable-line
543543
return;
544544
}
545545

546-
if (xhr.status === 401) {
546+
const isInApp = !document.querySelector('#login_form');
547+
548+
if (xhr.status === 401 && isInApp) {
547549
Matomo.helper.refreshAfter(0);
548550
return;
549551
}

0 commit comments

Comments
 (0)