We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9a8e1c + 231263d commit cde10f2Copy full SHA for cde10f2
js/cms.js
@@ -2,7 +2,8 @@
2
$.entwine('copybutton', function($) {
3
$('.field.urlsegment .btn.copy').entwine({
4
onclick: function() {
5
- var url = document.getElementsByClassName('URL-link')[0].innerHTML;
+ var url = document.getElementsByClassName('URL-link')[0].href;
6
+ url = url.replace('?stage=Stage', '');
7
navigator.clipboard.writeText(url)
8
.then(() => {
9
console.log("Text copied to clipboard...")
@@ -13,4 +14,4 @@
13
14
}
15
});
16
-}(jQuery));
17
+}(jQuery));
0 commit comments