Skip to content

Commit

Permalink
fix(example): generate correct URL when sharing EPT example
Browse files Browse the repository at this point in the history
  • Loading branch information
zarov authored and gchoqueux committed Jul 28, 2021
1 parent bcee39f commit 8ef0b34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/entwine_simple_loader.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@
loadEPT(url);

document.getElementById('share').innerHTML = '<a href="' +
location.href.replace(location.search, '?ept=' + url) +
'" target="_blank">Link to share this view</a>';
location.href.replace(location.search, '') +
'?ept=' + url
+ '" target="_blank">Link to share this view</a>';
document.getElementById('ept_url').value = url;
}
}
Expand Down

0 comments on commit 8ef0b34

Please sign in to comment.