For instance, this one (link to a post to !memes@reddthat.com): https://reddthat.com/post/20260613
Pasting it in your search bar should give you this kind of results:
You can then click on it to access the post from your instance (in this example, lemmy.zip: https://lemmy.zip/post/16918691)
Some UIs do, I have Tesseract on mine and it rewrites the links for me.
That doesn’t solve sharing a link on Matrix/Discord/Google or wherever. I rarely have this issue on Lemmy itself, but whenever I get a link from elsewhere, that’s when I need to be able to open it on my home instance so I can interact with it.
Same deal with Mastodon. You’re reading some news, it links so the dev’s Mastodon, you need a way to open it in your home instance.
There’s no fixing that.
EDIT: test self link to this comment https://lemmy.world/comment/10561034
This is what that looks like on a good Lemmy frontend:
I forgot the default UI didn’t do that. Both Tesseract and Boost handle those mostly just fine.
Yeah, 3rd party links are a tougher nut to crack. You’d think they could at least fix the local links, though.
I can think of a few potential solutions, but they’d all require a lot of user opt in and centralisation, which makes it unlikely to ever happen.