-
Hi,
It looks like all share buttons on top of the video player have the video title added to the end of their links URL.
For example, if I open the video player to watch “myvideo.mp4”, the facebook share button link will be “https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.mywebsite.com%2Fsomepage%2F%23fvp_myvideo”
Now, I am trying to replace the URL to link to some other page, and I don’t want the video title to be part of it, but it’s still there!
I’m using JQuery to replace the URL like this:
var url = “https://mywebsite/someOTHERpage/?post_id=123”;
var $facebook_link = ‘https://www.facebook.com/sharer/sharer.php?u=’ + url;
$(‘a.sharing-facebook’).attr(‘href’, $facebook_link);
and then the facebook share button link is:
“https://www.facebook.com/sharer/sharer.php?u=https://mywebsite/someOTHERpage/?post_id=123%23fvp_myvideo”
But I want it to be just:
“https://www.facebook.com/sharer/sharer.php?u=https://mywebsite/someOTHERpage/?post_id=123”
How do I get rid of the title at the end of the sharing link?