Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Use spree_nav_link_tag in mobile menu.

Matthew Kennedy3dbf9b80ed39
diff --git a/frontend/app/views/spree/shared/_mobile_navigation.html.erb b/frontend/app/views/spree/shared/_mobile_navigation.html.erb
index ee51205946..76f67244fb 100644
--- a/frontend/app/views/spree/shared/_mobile_navigation.html.erb
+++ b/frontend/app/views/spree/shared/_mobile_navigation.html.erb
@@ -44,7 +44,7 @@
<% if child.children.present? %>
<% child.children.each do |category_link| %>
<li class="d-flex justify-content-between align-items-center mobile-navigation-list-item">
- <%= link_to category_link.name, spree_localized_link(category_link), class: 'w-75' %>
+ <%= spree_nav_link_tag(category_link, {class: 'w-75'}) %>
</li>
<% end %>
<% end %>