diff --git a/web/app/assets/javascripts/react-components/stores/SessionStore.js.coffee b/web/app/assets/javascripts/react-components/stores/SessionStore.js.coffee index cde04af39..ce18d8551 100644 --- a/web/app/assets/javascripts/react-components/stores/SessionStore.js.coffee +++ b/web/app/assets/javascripts/react-components/stores/SessionStore.js.coffee @@ -1153,12 +1153,12 @@ ConfigureTracksActions = @ConfigureTracksActions logger.debug("client asks #{op} for #{data["id"]}") if op == "join" sessionId = data["id"] - if sessionId != @currentSessionId window.location = "/client#/session/" + sessionId else logger.debug("dropped #{op} because sessionId #{sessionId} matches currentSessionId") else if op == "leave" + sessionId = data["id"] if sessionId == @currentSessionId @onLeaveSession({location: '/client#/home'}) else