links to source site should continue to work

This commit is contained in:
j 2025-06-25 18:56:57 +02:00
commit 8b23fc7db5

View file

@ -112,9 +112,11 @@ const clickLink = function(event) {
} }
var href = a.attributes.href.value var href = a.attributes.href.value
var prefix = document.location.protocol + '//' + document.location.hostname var prefix = document.location.protocol + '//' + document.location.hostname
/*
if (pandoraURL && href.startsWith(pandoraURL)) { if (pandoraURL && href.startsWith(pandoraURL)) {
href = href.slice(pandoraURL.length) href = href.slice(pandoraURL.length)
} }
*/
if (!pandoraURL && href.startsWith(prefix)) { if (!pandoraURL && href.startsWith(prefix)) {
href = href.slice(prefix.length) href = href.slice(prefix.length)
} }