refactor(web): ♻ don't encode ampersand in ABP subscription links

closes #252

ref https://github.com/uBlockOrigin/uBlock-issues/issues/763
This commit is contained in:
Collin M. Barrett 2020-09-14 07:14:39 -05:00
parent 5b97ba15e8
commit 2c0dd92ac7

View file

@ -69,7 +69,7 @@ const buildButtonProps = (name: string, viewUrl: string) => {
const hrefLocation = `${encodeURIComponent(viewUrl)}`;
const hrefTitle = `${encodeURIComponent(name)}`;
let href = `abp:subscribe?location=${hrefLocation}&title=${hrefTitle}`;
let href = `abp:subscribe?location=${hrefLocation}&title=${hrefTitle}`;
let prefixes: string[] = [];
let message = `Subscribe to ${name} with a browser extension supporting the "abp:" protocol (e.g. uBlock Origin, Adblock Plus).`;