diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index abff5c65d..121f51b10 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -5270,6 +5270,7 @@ FilterContainer.prototype.transformRequest = function(fctxt) { const directive = directives[directives.length-1]; if ( (directive.bits & AllowAction) !== 0 ) { return directives; } const redirectURL = new URL(fctxt.url); + if ( directive.value === redirectURL.pathname ) { return; } redirectURL.pathname = directive.value; fctxt.redirectURL = redirectURL.href; return directives;