One of the many benefits of the fediverse is the variety of instances that users can create across different domains, giving inherent independence to the network as it’s spread across many nodes instead of one centralized entity.

However, in terms of linking across the fediverse, that means every URL can potentially have a different host — not all Mastodon links are on mastodon.social, even if your account is located there.
That means, if you’re working with those URLs, you need to prepare for links coming from any specific instance, not just your own – expecting mastodon.social doesn’t cut it.

Plus, when clicking on a link separate from your own instance, the URL is formed with your own instance as the base, but the handle/other instance at the end — an odd behavior to work with at first.
Thankfully, the solution can be amid the components found Mastodon’s URL pattern – and you can use Shortcuts to extract those individual details as needed. Here’s how:
