These don’t work in my browser. I think maybe they work on my corp machine when I use Outlook and Safari, but on my regular machine with MailMate and Firefox, these links always break.
I want to intercept them and take out the https://urldefense.com/v3/__ before opening. Choosy can’t do advanced handling like this.
I thought about making an AppleScript app with a custom URL handler for urldefense.com but I’m not sure that would work. Haven’t tested yet.
I remember Ralf talking about similar URL mangling… any advice on how I might make this work?
You can do that with Link Unshortener LinkUnshortener
In “Redirect” you can define the URL matching pattern and the replacement.
I think the regex pattern /^.*?(?=https://)/ and the replacement $1 will do the job.
Alternatively you can use Redirect Web for Safari (iOS and Mac App Store).
Redirect Web for Safari will do a better job, when the link is called inside Safari.
It might even be possible to define the part “https://urldefense.com/v3” as a tracker in Link Unshortener, so that it gets deleted similar to tracking URLs from Amazon.
Exactly. I have settings in Velja that all Alfred links go to Orion, but I can let all other links be handled by the “browser” Link Unshortener.
I can even go crazy and let Link Unshortener (with Web Rules) send all http://id/ links to YOURLS, where a php-Plugin does the further processing.
A Velja screenshot:
Another way to fix this would be to simply set up Redirector (chromium + Firefox based browsers) + Redirect web (only safari, but plus side is that it will work on iOS too!)
There is a conceptual difference between Redirect Web and Link Unshortener. Link Unshortener is a standalone app that appears as a browser. Any link clicked in a notes app opens the ‘browser’ Link Unshortener, which then forwards the cleaned link to a real browser.
Redirect Web (and Redirector) are browser extensions and only process the link after it has reached the browser.
This often doesn’t make any difference, especially if you always use the same browser. In iOS, a redirect even only works as a browser extension.