I put a little debug line into widget-context.php to echo $url; just before the return from function get_current_url()
On my local site it showed https://localhost/mypage
Not at all what I was expecting, but using that string gets a match on target by URL.
Better still…seems you can use the * wildcard anywhere on the URL.
e.g. */mypage/*
Hope that helps.