Skip to content

Commit 9919d2d

Browse files
committed
Only redirect to login when not navigating away (when logging out)
1 parent d435c38 commit 9919d2d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/resources/static/js/shiny.ui.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ Shiny.ui = {
113113
},
114114

115115
redirectToLogin: function() {
116-
window.location.href = Shiny.common.staticState.contextPath;
116+
if (!Shiny.app.runtimeState.navigatingAway) {
117+
// only redirect to login when not navigating away, e.g. when logging out
118+
window.location.href = Shiny.common.staticState.contextPath;
119+
}
117120
},
118121

119122
hideInstanceModal: function() {

0 commit comments

Comments
 (0)