Skip to content

Commit

Permalink
FIX: Use route for admin sentiment sidebar links
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
martin-brennan committed Mar 3, 2025
1 parent 5368b0c commit f1c475c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/javascripts/initializers/ai-sentiment-admin-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});
Expand Down

0 comments on commit f1c475c

Please sign in to comment.