Skip to content

Commit cd680bc

Browse files
authored
move store pref to startWithOAuthLogin
1 parent 9060941 commit cd680bc

File tree

1 file changed

+2
-2
lines changed
  • deps/rabbitmq_management/priv/www/js

1 file changed

+2
-2
lines changed

deps/rabbitmq_management/priv/www/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ $(document).ready(function() {
77
renderWarningMessageInLoginStatus(fmt_escape_html(error));
88
} else {
99
if (oauth.enabled) {
10-
store_pref("oauth-return-to", url.hash);
11-
1210
startWithOAuthLogin();
1311
} else {
1412
startWithLoginPage();
@@ -21,6 +19,8 @@ function startWithLoginPage() {
2119
start_app_login();
2220
}
2321
function startWithOAuthLogin () {
22+
store_pref("oauth-return-to", window.location.hash);
23+
2424
if (!oauth.logged_in) {
2525
if (oauth.sp_initiated) {
2626
get(oauth.readiness_url, 'application/json', function (req) {

0 commit comments

Comments
 (0)