Skip to content

Commit

Permalink
No follow for Account Login header url
Browse files Browse the repository at this point in the history
  • Loading branch information
jclarkin committed Sep 12, 2024
1 parent c33f0db commit 4e9b5e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sections/header.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@
{% render 'header-search', input_id: 'Search-In-Modal' %}

{%- if shop.customer_accounts_enabled -%}
<a href="{%- if customer -%}{{ routes.account_url }}{%- else -%}{{ routes.account_login_url }}{%- endif -%}" class="header__icon header__icon--account link focus-inset{% if section.settings.menu != blank %} small-hide{% endif %}">
<a
href="{%- if customer -%}{{ routes.account_url }}{%- else -%}{{ routes.account_login_url }}{%- endif -%}"
class="header__icon header__icon--account link focus-inset{% if section.settings.menu != blank %} small-hide{% endif %}"
rel="nofollow"
>
{%- if section.settings.enable_customer_avatar -%}
<account-icon>
{%- if customer and customer.has_avatar? -%}
Expand Down
1 change: 1 addition & 0 deletions snippets/header-drawer.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
<a
href="{%- if customer -%}{{ routes.account_url }}{%- else -%}{{ routes.account_login_url }}{%- endif -%}"
class="menu-drawer__account link focus-inset h5 medium-hide large-up-hide"
rel="nofollow"
>
{%- if section.settings.enable_customer_avatar -%}
<account-icon>
Expand Down

0 comments on commit 4e9b5e7

Please sign in to comment.