It makes it so that if you visit another instance using their URL, it will redirect you to your home version’s federated link.
E.g. if your home server is Lemmy.world, let’s say you find a link to Lemmy on another website but it’s a link to Lemmy.ml. If you click the link, you won’t be signed in.
How does it detect that a link is a lemmy link? Also, does this work on any website or just lemmy? Can it also handle things like opening a link from an app outside of the browser?
You should look at the link this post points to, the description of the script answers 2/3 :D
A link is detected by keeping a list of all instances and just matching them to that list. Currently contains 1188 instances sourced from https://lemmyverse.net/
Yes, any website
Yes, not immediately, but you get a "Show on [HOME INSTANCE]" link at the top
Would you mind explaining to me why i would want to do this? It's a genuine question.. i'm still learning Lemmy but do run my own instance just for my account.
It makes it so that if you visit another instance using their URL, it will redirect you to your home version’s federated link.
E.g. if your home server is Lemmy.world, let’s say you find a link to Lemmy on another website but it’s a link to Lemmy.ml. If you click the link, you won’t be signed in.