KEYCLOAK-7795: "Back to <app>" missing from Welcome Page

This commit is contained in:
ssilvert@win.redhat.com 2018-07-09 08:13:30 -04:00 committed by Stan Silvert
parent 2adff375db
commit 8533bc7f00

View file

@ -134,6 +134,9 @@
we are unable to localize the button's message. Not sure what to do about that yet. we are unable to localize the button's message. Not sure what to do about that yet.
--> -->
<ul class="nav navbar-nav navbar-right navbar-iconic"> <ul class="nav navbar-nav navbar-right navbar-iconic">
<#if referrer?has_content && referrer_uri?has_content>
<li><a class="nav-item-iconic" href="${referrer_uri}" id="referrer"><span class="pficon-arrow"></span>${msg("backTo",referrer)}</a></li>
</#if>
<li><button id="signInButton" style="visibility:hidden" onclick="keycloak.login();" class="btn btn-primary btn-lg btn-sign" type="button">${msg("doLogIn")}</button></li> <li><button id="signInButton" style="visibility:hidden" onclick="keycloak.login();" class="btn btn-primary btn-lg btn-sign" type="button">${msg("doLogIn")}</button></li>
<#if realm.internationalizationEnabled && supportedLocales?size gt 1> <#if realm.internationalizationEnabled && supportedLocales?size gt 1>
<li class="dropdown"> <li class="dropdown">
@ -227,6 +230,7 @@
<script> <script>
var winHash = window.location.hash; var winHash = window.location.hash;
console.log('winHash=' + winHash);
if ((winHash.indexOf('#/') == 0) && (!winHash.indexOf('#/&state') == 0)) { if ((winHash.indexOf('#/') == 0) && (!winHash.indexOf('#/&state') == 0)) {
document.getElementById("welcomeScreen").style.display='none'; document.getElementById("welcomeScreen").style.display='none';
} }