urlFilter
当我按照应重定向到页面的规则指定站点的确切 URL 时/questions
,它会错误地重定向该站点的每个页面(例如,个人资料、特定问题等)。
[
{
"id": 1,
"priority": 1,
"action": {
"type": "redirect",
"redirect": {
"url": "https://stackoverflow.com/questions"
}
},
"condition": {
"urlFilter": "https://stackoverflow.com",
"resourceTypes": ["main_frame"]
}
}
]
测试
https://stackoverflow.com | redirected (OK) |
https://stackoverflow.com/another | redirected (FAIL) | expected: not redirect
我如何在 ManifestV3 中制定仅重定向https://stackoverflow.com
?