Skip to content
Snippets Groups Projects
Unverified Commit 99b061d2 authored by Tom Robinson's avatar Tom Robinson
Browse files

More helpful warning when site url isn't correct

parent 39864ba4
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,8 @@
}
if (actualRoot !== configuredRoot) {
console.warn("Site URL root \"" + configuredRoot + "\" does not match actual root \"" + actualRoot + "\"");
console.warn("Warning: the Metabase site URL basename \"" + configuredRoot + "\" does not match the actual basename \"" + actualRoot + "\".");
console.warn("You probably want to update the Site URL setting to \"" + window.location.origin + actualRoot + "\"");
document.getElementsByTagName("base")[0].href = actualRoot;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment