Skip to content

Commit

Permalink
Merge pull request #797 from arXiv/ARXIVCE-2828
Browse files Browse the repository at this point in the history
ARXIVCE-2828 use tabindex -1 on honeypot.
  • Loading branch information
jonathanhyoung authored Nov 20, 2024
2 parents 465bbd6 + 3df1cfa commit 1215b0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions browse/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@

<div id="header" class="is-hidden-mobile">
{% block header %}
{#- The ignore_me link is not meant to be visible to users; it is meant to catch robots/crawlers not respecting robots.txt. aria-hidden prevents screenreaders from being caught. -#}
<a aria-hidden="true" href="/IgnoreMe"></a>
{#- The ignore_me link is not meant to be visible to users; it is meant to catch robots/crawlers not respecting robots.txt.
aria-hidden prevents screenreaders from being caught, and tabindex prevents it from being selectable via the tab key. -#}
<a aria-hidden="true" tabindex="-1" href="/IgnoreMe"></a>
{% block header_h1 %}<h1><img src="{{ url_for('static', filename='images/arxiv-logo-one-color-white.svg') }}" alt="arxiv logo" style="height:60px;"/></h1>{% endblock header_h1%}
{% block login_link %}{% endblock %}
{{ base_macros.compactsearch() }}
Expand Down

0 comments on commit 1215b0c

Please sign in to comment.