diff --git a/assets/javascripts/discourse/components/ai-bot-sidebar-new-conversation.gjs b/assets/javascripts/discourse/components/ai-bot-sidebar-new-conversation.gjs index 915b8283..e4c4d323 100644 --- a/assets/javascripts/discourse/components/ai-bot-sidebar-new-conversation.gjs +++ b/assets/javascripts/discourse/components/ai-bot-sidebar-new-conversation.gjs @@ -1,4 +1,5 @@ import Component from "@glimmer/component"; +import { action } from "@ember/object"; import { service } from "@ember/service"; import DButton from "discourse/components/d-button"; import { AI_CONVERSATIONS_PANEL } from "../services/ai-conversations-sidebar-manager"; @@ -14,12 +15,18 @@ export default class AiBotSidebarNewConversation extends Component { ); } + @action + routeTo() { + this.router.transitionTo("/discourse-ai/ai-bot/conversations"); + this.args.outletArgs?.toggleNavigationMenu?.(); + } +