63

Hi all!

So, I'm assuming everyone has seen links like https://beehaw.org/c/news and clicked through to find it doesn't work right because it's a different site (I'm assuming a different instance here).

Well, I just stumbled across an interesting feature: if you enter a link in the following format, it works for everyone regardless of instance of origin:

[News](/c/news@beehaw.org)

News

[My User](/u/barbarian@lemmy.reckless.dev)

My User

You're welcome!

you are viewing a single comment's thread
view the rest of the comments
[-] DivergentHarmonics@sopuli.xyz 2 points 1 year ago* (last edited 1 year ago)

Ahaa! effect. Yes of course, as URL handling within the browser will inset your domain automatically. (edit for clarity: web browsers assume a link with a missing domain to go to the same domain/IP as the page the link is on, that's W3C standard -- therefore facepalm).
So, there is a bug in that link-builder popup which comes up as i start to type a !community@instance.tld link, right? It should not create links to the domains directly.

edit: Unfortunately, links to federated posts and comments are still broken because posts synced to other instances get a different ID than the original. Same as with users, there is no unique post ID throughout the federation (no common namespace). Systemic error but probably simple to fix.

Going trough my old comments now. Shouldn't be that much.

this post was submitted on 07 Jun 2023
63 points (100.0% liked)

Lemmy

11948 readers
2 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS