diff --git a/build/pom.xml b/build/pom.xml index e57efb428e..4708bbcf87 100644 --- a/build/pom.xml +++ b/build/pom.xml @@ -68,18 +68,23 @@ href="${resourceUrl}/ - <head> - -<head> - <script type="text/javascript"> - var loginRealm = "${loginRealm}"; - var authServerUrl = "${authServerUrl}"; - var authUrl = "${authUrl}"; - var consoleBaseUrl = "${consoleBaseUrl}"; - var resourceUrl = "${resourceUrl}"; - var masterRealm = "${masterRealm}"; - var resourceVersion = "${resourceVersion}"; - </script> + ]]> + + + { + "loginRealm": "${loginRealm}", + "authServerUrl": "${authServerUrl}", + "authUrl": "${authUrl}", + "consoleBaseUrl": "${consoleBaseUrl}", + "resourceUrl": "${resourceUrl}", + "masterRealm": "${masterRealm}", + "resourceVersion": "${resourceVersion}", + "isRunningAsTheme": true + } + + +]]> diff --git a/src/PageHeader.tsx b/src/PageHeader.tsx index cb7a21d153..955550b6e6 100644 --- a/src/PageHeader.tsx +++ b/src/PageHeader.tsx @@ -18,7 +18,7 @@ import { WhoAmIContext } from "./context/whoami/WhoAmI"; import { HelpContext, HelpHeader } from "./components/help-enabler/HelpHeader"; import { Link, useHistory } from "react-router-dom"; import { useAdminClient } from "./context/auth/AdminClient"; -import { resourceUri } from "./util"; +import environment from "./environment"; export const Header = () => { const adminClient = useAdminClient(); @@ -127,7 +127,10 @@ export const Header = () => { - + ); }; @@ -181,7 +184,7 @@ export const Header = () => { logo={