nref / BrowseRouter

In Windows, launch a different browser depending on the url
MIT License
123 stars 12 forks source link

[Feature Request] Resolve Microsoft Outlook/Teams "safe links" and handle the target link according to configuration #35

Open bllngr opened 1 month ago

bllngr commented 1 month ago

My workplace has Microsoft "Safe Links" enabled in Outlook and Teams and probably other Microsoft applications. This means that every link opened from these applications is rewritten to some Microsoft page, which verifies the URL and then redirects to it.

This completely breaks the idea of BrowseRouter, since there's essentially only a few target URLs. It would be really great if BrowseRouter detected those URLs, extracted the target URL from them, and then opened the target URL directly according to configuration.

These are the patterns I've found:

It seems like parsing the query string and opening the value of the url instead of the passed link should be enough.

nref commented 1 month ago

Thanks @bllngr for the feature request. I also use Teams at work and have the same problem. I'll look into adding an option to parse out SafeLinks URLs.