mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
17 lines
419 B
JavaScript
17 lines
419 B
JavaScript
import { service } from "@ember/service";
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
export default class ChatChannelLegacyRoute extends DiscourseRoute {
|
|
@service router;
|
|
|
|
redirect() {
|
|
const { channelTitle, channelId, messageId } = this.paramsFor(
|
|
this.routeName
|
|
);
|
|
|
|
this.router.replaceWith("chat.channel", channelTitle, channelId, {
|
|
queryParams: { messageId },
|
|
});
|
|
}
|
|
}
|