treat relative URLs for terms, privacy, etc. as relative to the main domain in the 'about cryptpad' menu

This commit is contained in:
ansuz 2022-08-01 15:42:32 +05:30
parent dd5f4a2e7b
commit 82c3ebe696

View File

@ -1680,6 +1680,7 @@ define([
var a = p.querySelector('a');
if (!a) { return; }
sub.innerText = a.innerText;
sub.setAttribute('href', href);
p.replaceChild(sub, a);
return p;
};