From f9bb7315cc0ea007ac0f5d25a101ebbb0777640f Mon Sep 17 00:00:00 2001 From: TechWorkz <125192124+Tech-Werkz@users.noreply.github.com> Date: Sat, 25 Oct 2025 17:32:06 +0800 Subject: [PATCH] Update logout redirection logic with key parameter on logoutonidlesessiontimeout (#7379) --- views/default-mobile.handlebars | 3 ++- views/default.handlebars | 3 ++- views/default3.handlebars | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index 4f19977f..529a8f74 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -1541,7 +1541,8 @@ files = null; } if (serverinfo.logoutonidlesessiontimeout) { - window.location.href = 'logout'; + if (urlargs.key) { window.location.href = 'logout?key=' + urlargs.key; } + else { window.location.href = 'logout'; } } } } diff --git a/views/default.handlebars b/views/default.handlebars index e20836cc..b550f823 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -2453,7 +2453,8 @@ files = null; } if (serverinfo.logoutonidlesessiontimeout) { - window.location.href = 'logout'; + if (urlargs.key) { window.location.href = 'logout?key=' + urlargs.key; } + else { window.location.href = 'logout'; } } } else { var ds = Math.round((serverinfo.timeout - delta) / 1000); diff --git a/views/default3.handlebars b/views/default3.handlebars index 81b3f731..db7b3e17 100644 --- a/views/default3.handlebars +++ b/views/default3.handlebars @@ -3087,7 +3087,8 @@ files = null; } if (serverinfo.logoutonidlesessiontimeout) { - window.location.href = 'logout'; + if (urlargs.key) { window.location.href = 'logout?key=' + urlargs.key; } + else { window.location.href = 'logout'; } } } else { var ds = Math.round((serverinfo.timeout - delta) / 1000);