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
Hello, my custom rules are working fine when matching relative urls or absolute urls that begin with "/". However, I can't seem to match a full remote absolute url (i.e. including the https://).
For example, filter: /bar.jpg$/ will match url("/foo/bar.jpg") but it will skip url("https://test.com/foo/bar.jpg") (I've tried adding .* at the front of the regex as well to no avail).
Just wondering if I'm missing a setting somewhere or if the library simply doesn't support this use case?
The reason I'm trying to do this is to dynamically switch my cdn image links to a backup domain in emergencies.
The text was updated successfully, but these errors were encountered:
sayowayah
changed the title
Filter not matching absolute https url
Filter not matching remote https url
May 10, 2022
Hello, my custom rules are working fine when matching relative urls or absolute urls that begin with "/". However, I can't seem to match a full remote absolute url (i.e. including the
https://
).For example,
filter: /bar.jpg$/
will matchurl("/foo/bar.jpg")
but it will skipurl("https://test.com/foo/bar.jpg")
(I've tried adding.*
at the front of the regex as well to no avail).Just wondering if I'm missing a setting somewhere or if the library simply doesn't support this use case?
The reason I'm trying to do this is to dynamically switch my cdn image links to a backup domain in emergencies.
The text was updated successfully, but these errors were encountered: