Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 3f20b24

Browse files
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.
1 parent 5368b0c commit 3f20b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/javascripts/initializers/ai-sentiment-admin-nav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default apiInitializer("1.15.0", (api) => {
66
if (settings.ai_sentiment_enabled) {
77
api.addAdminSidebarSectionLink("reports", {
88
name: "sentiment_overview",
9-
href: "/admin/dashboard/sentiment#sentiment-heading",
9+
route: "admin.dashboardSentiment",
1010
label: "discourse_ai.sentiments.sidebar.overview",
1111
icon: "chart-column",
1212
});

0 commit comments

Comments
 (0)