Yes, you could use a rule similar to that:
var redirectFile = chrome.runtime.getURL("./ui/localpage.html");
{
action: {
type: "redirect",
redirect: {
regexSubstitution: redirectFile + "?url=\\0"
}
},
condition: {"regexFilter": "^
https://www\.mywebsite\.com$", "resourceTypes": ["main_frame"]},
id: ruleIdx
priority: 1
}
It will even keep the original parameters thanks to \\0 so that your local page perform operations based on the original URL.
Regards,
Francois