Skip to content

Commit 6a8e0e8

Browse files
authored
Merge pull request rms-open-letter#2557 from saschanaz/full-url
Use page.url in share-links.html
2 parents abc7279 + 52df8cd commit 6a8e0e8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

_includes/share-links.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
{% assign full_url = site.url | append: page.url %}
12
<div class="share-links">
23
<p>Share</p>
34
<a
4-
href="https://twitter.com/intent/tweet?text={{page.share_text | uri_escape }}&url={{site.url | uri_escape}}"
5+
href="https://twitter.com/intent/tweet?text={{page.share_text | uri_escape }}&url={{full_url | uri_escape}}"
56
target="_blank"
67
rel="noopener noreferrer"
78
>
@@ -19,7 +20,7 @@
1920
</svg>
2021
</a>
2122
<a
22-
href="http://www.reddit.com/submit?title={{page.share_text | uri_escape }}&url={{site.url | uri_escape}}"
23+
href="http://www.reddit.com/submit?title={{page.share_text | uri_escape }}&url={{full_url | uri_escape}}"
2324
target="_blank"
2425
rel="noopener noreferrer"
2526
>
@@ -37,7 +38,7 @@
3738
</svg>
3839
</a>
3940
<a
40-
href="https://www.facebook.com/sharer/sharer.php?u={{site.url | uri_escape }}"
41+
href="https://www.facebook.com/sharer/sharer.php?u={{full_url | uri_escape }}"
4142
target="_blank"
4243
rel="noopener noreferrer"
4344
>
@@ -55,7 +56,7 @@
5556
</svg>
5657
</a>
5758
<a
58-
href="https://www.linkedin.com/sharing/share-offsite/?url={{ site.url }}"
59+
href="https://www.linkedin.com/sharing/share-offsite/?url={{ full_url }}"
5960
target="_blank"
6061
rel="noopener noreferrer"
6162
>

0 commit comments

Comments
 (0)