[mv3] Fix regression in managing redirect rules

Regression cause by:
fad0af591f
This commit is contained in:
Raymond Hill 2025-08-25 11:55:36 -04:00
parent f9ee5e2a64
commit 69fa0c2e09
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -209,7 +209,9 @@ async function updateRedirectRules(currentRules, addRules, removeRuleIds) {
for ( const rule of currentRules ) {
if ( rule.id >= SPECIAL_RULES_REALM ) { continue; }
if ( rule.action.type !== 'redirect' ) { continue; }
if ( rule.action.redirect.extensionPath === undefined ) { continue; }
if ( rule.action.redirect.extensionPath === undefined ) {
if ( rule.action.redirect.regexSubstitution === undefined ) { continue; }
}
removeRuleIds.push(rule.id);
}