git-subtree-dir: plugins/redmine_openid_connect git-subtree-split: 470de181cb7810db0c6c1d865454f29b8d8dfdc1
18 lines
471 B
Plaintext
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 %>
|