Remove url hash while sharing

parent 02e1b761
Pipeline #1425 passed with stage
in 35 seconds
......@@ -103,10 +103,10 @@ let draw = function() {
+ window.location.hash);
// Update tweet button
document.getElementById('tweet-button').href = 'https://twitter.com/intent/tweet?text=Soutenez La Quadrature du Net ! ' + encodeURIComponent(window.location.href);
document.getElementById('tweet-button').href = 'https://twitter.com/intent/tweet?text=Soutenez La Quadrature du Net ! ' + encodeURIComponent(window.location.href.split('#')[0]);
// Update facebook button
document.getElementById('fb-button').href = 'https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(window.location.href);
document.getElementById('fb-button').href = 'https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(window.location.href.split('#')[0]);
}, false);
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment