Skip to content

Commit

Permalink
fix: replace special characters with '%*' in sharing URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtsHsu committed Jan 3, 2023
1 parent 98d48f5 commit 0cc420c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/post-sharing.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

{% for share in site.data.share.platforms %}
{% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url %}
<a href="{{ link }}" data-toggle="tooltip" data-placement="top"
<a href="{{ link | uri_escape }}" data-toggle="tooltip" data-placement="top"
title="{{ share.type }}" target="_blank" rel="noopener" aria-label="{{ share.type }}">
<i class="fa-fw {{ share.icon }}"></i>
</a>
Expand Down

0 comments on commit 0cc420c

Please sign in to comment.