From 852086e8888a68a2e9c84f319f29734db824d5cd Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 31 May 2023 00:52:27 +0200 Subject: [PATCH] FIX: correctly uses getURL to open full page (#21843) --- .../assets/javascripts/discourse/components/chat-drawer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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