Skip to content

Commit

Permalink
✨ add short_url param to share buttons for copy to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Oct 21, 2024
1 parent e4d1a2f commit 93d65f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion froide/templates/snippets/share_buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h1 class="modal-title fs-5" id="share-mastodon-label-{{ modal_id }}">{% trans "
{# on by default #}
<a href="#!"
class="{% if not links %}btn btn-outline-primary{% endif %} copy-text"
data-copy-text="{{ url }}">
data-copy-text="{{ short_url|default:url }}">
<i class="fa fa-clipboard"></i>
{% if icons_only %}<span class="sr-only">{% endif %}
{% trans "Copy link to clipboard" as copy_default %}
Expand Down

0 comments on commit 93d65f7

Please sign in to comment.