johnste / finicky

A macOS app for customizing which browser to start
MIT License
3.67k stars 136 forks source link

Increase support for link trackers #270

Open zomars opened 2 years ago

zomars commented 2 years ago

Is your feature request related to a problem? Please describe. Many mailing systems like sendgrid use their own link trackers like these: https://u3302489.ct.sendgrid.net/ls/click... these links bypass Finicky and get sent to the default browser instead.

Describe the solution you'd like A way to handle these kind of redirector would be nice.

aghouseh commented 1 year ago

This is very similar to a link sanitizing schema used by Teams. I'd love to see if we could get that link expanded and the resulting URL opened in the correct browser.

gerwitz commented 1 year ago

While it doesn't strip the querystring and thus does not prevent click tracking, these links can be sent to the correct browser by resolving the redirect via options.urlShorteners.

E.g. my config includes:

options: {
  urlShorteners: (list) => [...list, "mandrillapp.miro.com", "u3302489.ct.sendgrid.net"]
}

and as a result, the click-tracking emails sent by Figma are still routed by my "*.figma.com/file/*" handler.

johnste commented 8 months ago

A url resolved by the url shorteners can be changed further by adding a redirect handler like this one in the wiki