FIX: Use `route` for admin sentiment sidebar links (#1160)

Minor, but there is a core bug when using `href` at the moment,
this fixes the issue, and I will do more in core separately.
This commit is contained in:
Martin Brennan 2025-03-03 15:37:45 +10:00 committed by GitHub
parent 5368b0c7d0
commit 3f20b24aa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ export default apiInitializer("1.15.0", (api) => {
if (settings.ai_sentiment_enabled) {
api.addAdminSidebarSectionLink("reports", {
name: "sentiment_overview",
href: "/admin/dashboard/sentiment#sentiment-heading",
route: "admin.dashboardSentiment",
label: "discourse_ai.sentiments.sidebar.overview",
icon: "chart-column",
});