From 39633a55818f18eb268d43b4cc6e04a721ad5609 Mon Sep 17 00:00:00 2001 From: Cesar N <11819101+cesnietor@users.noreply.github.com> Date: Mon, 6 May 2024 19:47:59 -0700 Subject: [PATCH] Set Console Redirect URL env variable (#19683) --- cmd/common-main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/common-main.go b/cmd/common-main.go index 737d2d660..835f861a1 100644 --- a/cmd/common-main.go +++ b/cmd/common-main.go @@ -139,6 +139,9 @@ func minioConfigToConsoleFeatures() { os.Setenv("CONSOLE_LOG_QUERY_AUTH_TOKEN", value) } } + if value := env.Get(config.EnvBrowserRedirectURL, ""); value != "" { + os.Setenv("CONSOLE_BROWSER_REDIRECT_URL", value) + } // pass the console subpath configuration if globalBrowserRedirectURL != nil { subPath := path.Clean(pathJoin(strings.TrimSpace(globalBrowserRedirectURL.Path), SlashSeparator))