Skip to content
Snippets Groups Projects
Unverified Commit becf7974 authored by Filipe Silva's avatar Filipe Silva Committed by GitHub
Browse files

fix: setup url should use MB_SITE_URL if available (#31078)

Fix #26402
parent 0b6daa34
No related branches found
No related tags found
No related merge requests found
......@@ -63,10 +63,11 @@
[]
(let [hostname (or (config/config-str :mb-jetty-host) "localhost")
port (config/config-int :mb-jetty-port)
setup-url (str "http://"
(or hostname "localhost")
(when-not (= 80 port) (str ":" port))
"/setup/")]
site-url (or (public-settings/site-url)
(str "http://"
hostname
(when-not (= 80 port) (str ":" port))))
setup-url (str site-url "/setup/")]
(log/info (u/format-color 'green
(str (deferred-trs "Please use the following URL to setup your Metabase installation:")
"\n\n"
......
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