0

I am working on migrating a chrome extension from manifest V2 to V3. Need some information on transformaurl or redirecturl as I can't get much documentation about it.

I have defined below rule in the rules.json file and it's working fine.

{
  "id": 1,
  "priority": 1,  
  "action": { "type": "redirect", "redirect":  { "extensionPath": "/index.html#redirected-URL=https://www.google.com" } },
  "condition": {
    "urlFilter": "bing.com",
    "resourceTypes": ["main_frame"]
  }
}

It redirects bing.com to "/index.html#redirected-URL=google.com"

Now the requirement is any "url" we open from browser should get redirected to

"/index.html#redirected-URL=" + <url>

for example if I open bing.com , it should get redirected to

/index.html#redirected-URL=bing.com

Any help would be highly appreciated. If there is any official document to write the rules.json file please share, Google's official doc is of not much use.

0 Answers0