Describes how the redirect should be performed. Only valid when type is 'redirect'.

interface _RuleActionRedirect {
    extensionPath?: string;
    regexSubstitution?: string;
    transform?: URLTransform;
    url?: string;
}
Index
extensionPath?: string

Path relative to the extension directory. Should start with '/'.

regexSubstitution?: string

Substitution pattern for rules which specify a 'regexFilter'. The first match of regexFilter within the url will be replaced with this pattern. Within regexSubstitution, backslash-escaped digits (\1 to \9) can be used to insert the corresponding capture groups. \0 refers to the entire matching text.

transform?: URLTransform

Url transformations to perform.

url?: string

The redirect url. Redirects to JavaScript urls are not allowed.