mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
Fix share button behaviour if there is a ?query param in the url
This commit is contained in:
parent
686b19c7c4
commit
a98bd49e37
@ -63,7 +63,11 @@ const Orchestrator = (obj) => {
|
||||
if (obj.rootOnly){
|
||||
shareUrl = window.location.href;
|
||||
}else{
|
||||
shareUrl = window.location.href + "?orchAddr=" + thisID;
|
||||
let thisFullPath = window.location.href;
|
||||
if (thisFullPath.lastIndexOf("?") > -1){
|
||||
thisFullPath = thisFullPath.substring(0, thisFullPath.lastIndexOf("?"));
|
||||
}
|
||||
shareUrl = thisFullPath + "?orchAddr=" + thisID;
|
||||
}
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user