Skip to content

A platform for community discussion. Free, open, simple.

FIX: correctly uses getURL to open full page (#21843)

Joffrey JAFFEUX852086e8888a
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-drawer.js b/plugins/chat/assets/javascripts/discourse/components/chat-drawer.js
index 50e5c353f2e..b85a7738c97 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-drawer.js
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-drawer.js
@@ -1,3 +1,4 @@
+import getURL from "discourse-common/lib/get-url";
import Component from "@ember/component";
import { bind, observes } from "discourse-common/utils/decorators";
import { action } from "@ember/object";
@@ -191,7 +192,9 @@ export default Component.extend({
this.chatStateManager.prefersFullPage();
this.chat.activeChannel = null;
- return this.router.transitionTo(this.chatStateManager.lastKnownChatURL);
+ return this.router.transitionTo(
+ getURL(this.chatStateManager.lastKnownChatURL)
+ );
},
@action