From 5d1548e989d8367d4db2a02e4f07a4c695b21389 Mon Sep 17 00:00:00 2001 From: Chell Date: Fri, 23 Dec 2022 04:05:15 +0100 Subject: [PATCH] feat: fix absolute URL redirection (#1419) * fix: redirect to absolute url * fix: original jump --- web/src/Setting.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/Setting.js b/web/src/Setting.js index 53d1a47b..18bf8a2d 100644 --- a/web/src/Setting.js +++ b/web/src/Setting.js @@ -799,6 +799,9 @@ export function renderLoginLink(application, text) { export function redirectToLoginPage(application, history) { const loginLink = getLoginLink(application); + if (loginLink.indexOf("http") === 0 || loginLink.indexOf("https") === 0) { + openLink(loginLink); + } history.push(loginLink); }