You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
redirect-rule doesn't work when blank pattern (asterisk) is omitted #977
I performed a cursory search of the issue tracker to avoid opening a duplicate issue
Your issue may already be reported.
I tried to reproduce the issue when...
uBlock Origin is the only extension
uBlock Origin with default lists/settings
using a new, unmodified browser profile
I am running the latest version of uBlock Origin
I checked the documentation to understand that the issue I report is not a normal behavior
Description
According to logger blocked URLs are not redirected in case redirect rule with blank pattern is present, but starts with $ instead of *$. Normal blocking rules with omitted blank pattern work fine since asterisk is optional in such case. Not for redirect rules, though.
Ugh, looks like missed this in the documentation. It were mentioned for normal redirect instead of redirect-rule. Not sure why is it like this, though. Why is it not optional?
Just the way the feature evolved over time. I can internally map the empty pattern to * if that is convenient. I just wished that * had be the canonical way to specify "match any URL".
Activity
lainverse commentedon Apr 6, 2020
Ugh, looks like missed this in the documentation. It were mentioned for normal redirect instead of redirect-rule. Not sure why is it like this, though. Why is it not optional?
uBlock-user commentedon Apr 6, 2020
By-design. You need to add
*.gorhill commentedon Apr 6, 2020
Just the way the feature evolved over time. I can internally map the empty pattern to
*if that is convenient. I just wished that*had be the canonical way to specify "match any URL".Support redirect rules with no pattern
szakib commentedon Dec 19, 2020
Please add this fact to the documentation. This GitHub page is the only place where this fact is written down.
uBlock-user commentedon Dec 19, 2020
@szakib That's no longer necessary - gorhill/uBlock@cb5437b
Support redirect rules with no pattern