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
This commit is contained in:
parent
89b9d42f08
commit
5b7466053d
2 changed files with 10 additions and 9 deletions
|
@ -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.`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue