einaregilsson / Redirector

Browser extension (Firefox, Chrome, Opera, Edge) to redirect urls based on regex patterns, like a client side mod_rewrite.
http://einaregilsson.com/redirector/
MIT License
1.55k stars 165 forks source link

[bug] redirector doesn't redirect when i click on links in page #267

Open sulphide3 opened 3 years ago

sulphide3 commented 3 years ago

i created a redirect from https://youtube.com to https://youtube.com/feed/subscriptions which works fine when i type the url in the location bar, but if i click on links to the same url (e.g. the youtube home icon) the redirector has no effect.

Version 1.24.85 Chromium: 90.0.4430.212 (Official Build) (64-bit)

{ "createdBy": "Redirector v3.5.3", "createdAt": "2021-05-15T18:03:14.000Z", "redirects": [ { "description": "youtube", "exampleUrl": "https://youtube.com", "exampleResult": "youtube.com/feed/subscriptions", "error": null, "includePattern": "https://youtube.com|https://www.youtube.com|https://www.youtube.com", "excludePattern": "", "patternDesc": "", "redirectUrl": "youtube.com/feed/subscriptions", "patternType": "R", "processMatches": "noProcessing", "disabled": false, "grouped": false, "appliesTo": [ "main_frame" ] }, { "description": "youtube", "exampleUrl": "http://youtube.com", "exampleResult": "youtube.com/feed/subscriptions", "error": null, "includePattern": "http://youtube.com|http://www.youtube.com|http://www.youtube.com", "excludePattern": "", "patternDesc": "", "redirectUrl": "youtube.com/feed/subscriptions", "patternType": "R", "processMatches": "noProcessing", "disabled": false, "grouped": false, "appliesTo": [ "main_frame" ] }, { "description": "abcd", "exampleUrl": "https://www.abc.com", "exampleResult": "https://www.duckduckgo.com", "error": null, "includePattern": "https://www.abc.com", "excludePattern": "", "patternDesc": "", "redirectUrl": "https://www.duckduckgo.com", "patternType": "W", "processMatches": "noProcessing", "disabled": false, "grouped": false, "appliesTo": [ "main_frame" ] } ] }

einaregilsson commented 3 years ago

Youtube uses weird ways to switch between pages, so Redirector can't really handle it. You can try using the Advanced options and checking the "History State" option as well as "Main window", but even then I'm not sure it will work.

sulphide3 commented 3 years ago

OK thanks for the reply

On Sat, May 15, 2021, 7:16 PM Einar Egilsson @.***> wrote:

Youtube uses weird ways to switch between pages, so Redirector can't really handle it. You can try using the Advanced options and checking the "History State" option as well as "Main window", but even then I'm not sure it will work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/einaregilsson/Redirector/issues/267#issuecomment-841738152, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVFD3Q53L2NPKBLVB3V2A3TN36ERANCNFSM446EPF4Q .