Files
redmine/app/views/account/oic_local_login.html.erb
Roman Vaníček 14d85815cd Squashed 'plugins/redmine_openid_connect/' content from commit 470de18
git-subtree-dir: plugins/redmine_openid_connect
git-subtree-split: 470de181cb7810db0c6c1d865454f29b8d8dfdc1
2023-05-30 15:44:02 +02:00

18 lines
471 B
Plaintext

<%= javascript_tag do %>
var wl = window.location
, url
, port;
if(wl.hash.length > 0) {
if(wl.port == 80 || wl.port == 443) {
port = null;
} else {
port = ':' + wl.port;
}
url = wl.protocol + '//' + wl.hostname + port + wl.pathname + '?' + wl.hash.substring(1);
wl.replace(url);
document.write('<p class="oic-click-for-redirect">Click <a href="' + url + '">here</a>, if redirection is not working.</p>');
}
<% end %>