summaryrefslogtreecommitdiff
path: root/lib/sidebars/menu_item.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sidebars/menu_item.rb')
-rw-r--r--lib/sidebars/menu_item.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sidebars/menu_item.rb b/lib/sidebars/menu_item.rb
index b0a12e769dc..1375f9fffca 100644
--- a/lib/sidebars/menu_item.rb
+++ b/lib/sidebars/menu_item.rb
@@ -22,5 +22,13 @@ module Sidebars
def render?
true
end
+
+ def nav_link_html_options
+ {
+ data: {
+ track_label: item_id
+ }
+ }
+ end
end
end