Skip to content

Commit

Permalink
Feature/fsr 200 fix (#215)
Browse files Browse the repository at this point in the history
* encode post tilte for use in url

* added url encode
  • Loading branch information
nikiwycherley authored Jun 25, 2021
1 parent 429d25c commit 831b20d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/views/partials/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h2 class="govuk-heading-m govuk-!-margin-top-6">Share this page</h2>
<ul class="defra-social">
<li class="defra-social__channel">
<a class="defra-social__link defra-social__link--facebook" href="https://www.facebook.com/sharer/sharer.php?u={{fullUrl | urlencode}}{% if model.postTitle %}&title={{model.postTitle}}{% endif %}">Facebook</a>
<a class="defra-social__link defra-social__link--facebook" href="https://www.facebook.com/sharer/sharer.php?u={{fullUrl | urlencode}}{% if model.postTitle %}&title={{model.postTitle | urlencode}}{% endif %}">Facebook</a>
</li>
<li class="defra-social__channel">
<a class="defra-social__link defra-social__link--twitter" href="https://twitter.com/intent/tweet?original_referer&amp;text=Important%20flood%20risk%20information%20%E2%80%93%20please%20retweet%20&url={{fullUrl | urlencode}}">Twitter</a>
Expand Down

0 comments on commit 831b20d

Please sign in to comment.