Skip to content

Commit 4bf66ab

Browse files
MarcialRosalesmergify[bot]
authored andcommitted
Add missing function
It was not backported from v3.11 (cherry picked from commit f015f34)
1 parent ed68425 commit 4bf66ab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

deps/rabbitmq_management/priv/www/js/dispatcher.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,7 @@ dispatcher_add(function(sammy) {
340340
oauth.logged_in = false;
341341
oauth_initiateLogout();
342342
}else {
343-
// go_to_home()
344-
location.reload();
343+
go_to_home()
345344
}
346345
});
347346

deps/rabbitmq_management/priv/www/js/oidc-oauth/helper.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ function oauth_redirectToHome(oauth) {
225225
function go_to(path) {
226226
location.href = rabbit_path_prefix() + "/" + path
227227
}
228+
function go_to_home() {
229+
location.href = rabbit_path_prefix() + "/"
230+
}
228231
function go_to_authority() {
229232
location.href = oauth.authority
230233
}

0 commit comments

Comments
 (0)