From 5b7466053d993685939da8623fb78e94e4ee0797 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 1 Apr 2022 16:00:26 +0800 Subject: Skip frontend ROOT_URL check on installation page, remove unnecessary global var (#19291) Skip `checkAppUrl` message on installation page because the ROOT_URL is not determined yet Move global var `supportedDbTypeNames` into `install.Init` as a local var --- web_src/js/features/common-global.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web_src/js') diff --git a/web_src/js/features/common-global.js b/web_src/js/features/common-global.js index 60af4d0d67..dda803ae8d 100644 --- a/web_src/js/features/common-global.js +++ b/web_src/js/features/common-global.js @@ -358,6 +358,9 @@ export function checkAppUrl() { if (curUrl.startsWith(appUrl)) { return; } + if (document.querySelector('.page-content.install')) { + return; // no need to show the message on the installation page + } showGlobalErrorMessage(`Your ROOT_URL in app.ini is ${appUrl} but you are visiting ${curUrl} You should set ROOT_URL correctly, otherwise the web may not work correctly.`); } -- cgit v1.2.3