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

This commit is contained in:
Joffrey JAFFEUX 2023-05-31 00:52:27 +02:00 committed by GitHub
parent 0b9f035eac
commit 852086e888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import getURL from "discourse-common/lib/get-url";
import Component from "@ember/component"; import Component from "@ember/component";
import { bind, observes } from "discourse-common/utils/decorators"; import { bind, observes } from "discourse-common/utils/decorators";
import { action } from "@ember/object"; import { action } from "@ember/object";
@ -191,7 +192,9 @@ export default Component.extend({
this.chatStateManager.prefersFullPage(); this.chatStateManager.prefersFullPage();
this.chat.activeChannel = null; this.chat.activeChannel = null;
return this.router.transitionTo(this.chatStateManager.lastKnownChatURL); return this.router.transitionTo(
getURL(this.chatStateManager.lastKnownChatURL)
);
}, },
@action @action