Fixed redirection bug

#739

Added missing protocol on redirection
This commit is contained in:
Kevin R
2020-11-20 23:37:33 +01:00
parent 005d2c33c8
commit 32fb50a0c6

View File

@@ -287,6 +287,11 @@ function decodeURL(url) {
rtn = decodeURIComponent(rtn);
}
// Required (e.g., to fix https://github.com/ClearURLs/Addon/issues/71)
if(rtn.substr(0, 4) !== 'http') {
rtn = 'http://'+rtn
}
return rtn;
}