use base64 for urls (work some urls don't work otherwise)

This commit is contained in:
j 2023-06-08 14:45:52 +02:00
commit 614beae48e
2 changed files with 7 additions and 6 deletions

View file

@ -2639,7 +2639,10 @@ pandora.openLink = function(url) {
if (Ox.startsWith(url, 'mailto:')) {
window.open(url);
} else {
window.open('/url=' + encodeURIComponent(url), '_blank');
if (!pandora.site.site.sendReferrer) {
url = '/url=' + btoa(url);
}
window.open(url, '_blank');
}
};