CoreLibs icon indicating copy to clipboard operation
CoreLibs copied to clipboard

`$urltransform` combined with `$~3p` doesn't modify the request URL if it's opened directly in address bar

Open AdamWr opened this issue 1 year ago • 0 comments

Please answer the following questions for yourself before submitting an issue

  • [X] Filters were updated before reproducing an issue
  • [X] I checked the knowledge base and found no answer
  • [X] I checked to make sure that this issue has not already been filed

AdGuard version

7.19.0 nightly 18 (4868) (CL 1.16.48, DL 2.5.51 )

Browser version

Chrome 131

OS version

Windows 11

Issue Details

Steps to reproduce:

  1. Add this rule:
||pbs.twimg.com^$urltransform=/name=(small|medium|large|900x900)/name=orig/,~3p
  1. Copy:
https://pbs.twimg.com/media/Gcvwx31WMAAGU4b?format=jpg&name=small
  1. Past copied URL in address bar and click enter

Expected Behavior

https://pbs.twimg.com/media/Gcvwx31WMAAGU4b?format=jpg&name=small should be redirected to - https://pbs.twimg.com/media/Gcvwx31WMAAGU4b?format=jpg&name=orig

Actual Behavior

URL is not redirected if there is ~3p in the rule.

Screenshots

No response

Additional Information

If I remove ~3p from the rule - ||pbs.twimg.com^$urltransform=/name=(small|medium|large|900x900)/name=orig/ then it works fine. It also works correctly with ~3p modifier if I open this website - https://x.com/visegrad24/status/1858844015191351572 and then open image in a new tab (using context menu).

AdamWr avatar Nov 20 '24 09:11 AdamWr