Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@
<div class="row">
<div class="col">
{% if pagetype == "product" or pagetype == "about" %}
<a class="multipage-link active" href="{% relocalized_url home_page.localized.url %}">{% trans "All" %}</a>
<a class="multipage-link active" data-mobile="{% trans "All Categories" %}" href="{% relocalized_url home_page.localized.url %}">{% trans "All" %}</a>
{% else %}
<a class="multipage-link {% if not category %} active{% endif %}" href="{% relocalized_url home_page.localized.url %}">{% trans "All" %}</a>
<a class="multipage-link {% if not category %} active{% endif %}" data-mobile="{% trans "All Categories" %}" href="{% relocalized_url home_page.localized.url %}">{% trans "All" %}</a>
{% endif %}

{% for cat in categories %}
Expand Down
4 changes: 3 additions & 1 deletion source/js/foundation/inject-react/multipage-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export default (apps) => {
if (targetNode && multipageLinks.length) {
let links = Array.from(multipageLinks).map((link) => {
return {
label: link.textContent.trim(),
label: link.dataset.mobile
? link.dataset.mobile.trim()
: link.textContent.trim(),
href: link.getAttribute(`href`),
isActive: !!link.getAttribute(`class`).match(/active/),
};
Expand Down