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.
1 parent 7940e91 commit 352f364Copy full SHA for 352f364
assets/js/player.js
@@ -767,7 +767,7 @@ if (window.location.pathname.startsWith('/embed/')) {
767
768
// Create hyperlink for current instance
769
redirect_element = document.createElement('a');
770
- redirect_element.setAttribute('href', `//${window.location.host}/watch?v=${window.location.pathname.replace('/embed/','')}`);
+ redirect_element.setAttribute('href', location.pathname.replace('/embed/', '/watch?v='));
771
redirect_element.appendChild(document.createTextNode('Invidious'));
772
773
watch_on_invidious_button.el().appendChild(redirect_element);
0 commit comments