Browse Source

Don't break anchor/hash links (#689)

beta
parent
commit
4f1fc731dc
Signed by: hristoast GPG Key ID: 5FC7664AD47AA1C5
  1. 6
      momw/templates/base.html

6
momw/templates/base.html

@ -50,7 +50,11 @@
<script src="/js/theme-picker.js"></script>
{% endif %}
{% if not no_focus %}
<script>document.search.q.focus();</script>
<script>
// Don't break anchor/hash links
if (window.location.hash === "")
document.search.q.focus();
</script>
{% endif %}
{% endblock %}
{% include 'tracking.html' %}

Loading…
Cancel
Save