type.inbound
and any(filter(body.current_thread.links,
regex.icontains(.href_url.path,
'^\/wp-(?:admin|includes|content)'
)
// remove "the newsletter plugin" encoded URLs
and not (
.href_url.path == "/wp-admin/admin-ajax.php"
and .href_url.query_params_decoded["action"][0] == "tnptr"
and 'nltr' in keys(.href_url.query_params_decoded)
)
),
// redirected to a page that is a "root" page
any(ml.link_analysis(.).redirect_history,
.path == "/"
and .domain.root_domain != ..href_url.domain.root_domain
// no query_params
and (.query_params == "" or .query_params is null)
and (.domain.subdomain is null or .domain.subdomain == "www")
)
)
Playground
Test against your own EMLs or sample data.