Skip to content

A platform for community discussion. Free, open, simple.

FIX: addNavigationBarItem api example (#21510)

Krisf160f073b079
diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.js b/app/assets/javascripts/discourse/app/lib/plugin-api.js
index 9d5c128de78..3652c79acf1 100644
--- a/app/assets/javascripts/discourse/app/lib/plugin-api.js
+++ b/app/assets/javascripts/discourse/app/lib/plugin-api.js
@@ -1097,7 +1097,7 @@ class PluginApi {
* customFilter: (category, args, router) => { return category && category.name !== 'bug' }
* customHref: (category, args, router) => { if (category && category.name) === 'not-a-bug') return "/a-feature"; },
* before: "top",
- * forceActive(category, args, router) => router.currentURL === "/a/b/c/d";
+ * forceActive: (category, args, router) => router.currentURL === "/a/b/c/d",
* })
*/
addNavigationBarItem(item) {