Skip to content

Commit

Permalink
fix: link copy
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonzorn committed Jun 12, 2024
1 parent 0042eee commit f24874b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datanar/templates/includes/link_card.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</a>
</div>
<div class="mt-1">
<button class="copy-text-field btn btn-outline-dark" data-link="{{ request.scheme }}://{{ request.get_host }}{% if '/' not in link.message %}/{% endif %}{{ link }}">{% trans "copy" %}</button>
<button class="copy-text-field btn btn-outline-dark" data-link="{{ request.scheme }}://{{ request.get_host }}{% if '/' not in link.message or '/' not in link %}/{% endif %}{{ link }}">{% trans "copy" %}</button>
{% if request.user.is_authenticated %}
{% if '/' not in link.message or '/' not in link %}
<a class="btn btn-outline-dark" href="{% url 'statistic:link_detail' link "all_time" %}">{% trans "statistic" %}</a>
Expand Down

0 comments on commit f24874b

Please sign in to comment.