FIX: correctly uses getURL to open full page (#21843)
This commit is contained in:
parent
0b9f035eac
commit
852086e888
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue