Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
3 tasks done
AdamWr opened this issue Nov 20, 2024 · 0 comments

Comments

@AdamWr
Copy link
Member

AdamWr commented Nov 20, 2024

Please answer the following questions for yourself before submitting an issue

  • Filters were updated before reproducing an issue
  • I checked the knowledge base and found no answer
  • 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).

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants