Skip to content

Commit ffb00be

Browse files
authored
fix: unknown keyword rel on menu link (#3210)
1 parent cd8d0dc commit ffb00be

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/components/avo/sidebar/link_component.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<% if @path.present? %>
2-
<%= send link_method, @path, class: classes, active: @active, target: @target, data: @data do %>
2+
<%= send link_method, @path, class: classes, active: @active, target: @target, data: @data, **@args do %>
33
<%= helpers.svg @icon, class: "h-4 text-gray-700" if @icon.present? %>
44
<%= @label %>
55
<% if @target == :_blank %>

app/components/avo/sidebar/link_component.rb

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class Avo::Sidebar::LinkComponent < Avo::BaseComponent
1111
end
1212
prop :data, Hash, default: {}.freeze
1313
prop :icon, _Nilable(String)
14+
prop :args, Hash, :**, default: {}.freeze
1415

1516
def is_external?
1617
# If the path contains the scheme, check if it includes the root path or not

0 commit comments

Comments
 (0)