From 99b061d24c119314403bc53c6d032917234da29f Mon Sep 17 00:00:00 2001 From: Tom Robinson <tlrobinson@gmail.com> Date: Thu, 13 Apr 2017 13:18:48 -0700 Subject: [PATCH] More helpful warning when site url isn't correct --- resources/frontend_client/index_template.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/frontend_client/index_template.html b/resources/frontend_client/index_template.html index c296fcfa48f..9fd59f72037 100644 --- a/resources/frontend_client/index_template.html +++ b/resources/frontend_client/index_template.html @@ -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; } -- GitLab