how do I link a lemmy instance or community in a comment?

As title.

So back on the old site you could write /r/NameOfSub. And it would allow other to click it to take them there. How do we do that in Lemmy? Thank you.

24 points · 15 comments · view on lemmy.world

15 Comments

mizu6079@lemmy.world · 6 pts · 3y
[ removed ]
Nemo@midwest.social · 4 pts · 3y (1 reply)

!name_of_sub@instance.tld

for example, !tomswifty@midwest.social or !urbanism@slrpnk.net

Vormital@lemmy.world · 2 pts · 3y

Thank you.

artillect@kbin.social · 3 pts · 3y (5 replies)

I use kbin so I might be wrong, but you do !community@instance.whatever, so !nostupidquestions@lemmy.world, becomes !nostupidquestions

I'm not sure if it works on Lemmy, but on kbin @nostupidquestions@lemmy.world also works, it becomes @nostupidquestions

CommunityLinkFixer@lemmings.world · 3 pts · 3y

Hi there! Looks like you linked to a Lemmy community using an URL instead of its name, which doesn't work well for people on different instances. Try fixing it like this: !nostupidquestions@lemmy.world

Mane25@feddit.uk · 1 pts · 3y (3 replies)

I use kbin so I might be wrong, but you do !community@instance.whatever, so !nostupidquestions@lemmy.world, becomes !nostupidquestions

Hmm, maybe that's not entirely working for KBin because your "!" link links me to https://lemmy.world/c/nostupidquestions as opposed to through my home instance.

The Link Fixer bot got it right.

artillect@kbin.social · 2 pts · 3y (1 reply)

Hmm that might be an issue with the way kbin processes it. I know there were some changes to how that worked in the most recent kbin update, @nostupidquestions used to link to https://kbin.social/m/nostupidquestions@lemmy.world but it also does the same for me

CommunityLinkFixer@lemmings.world · 1 pts · 3y

Hi there! Looks like you linked to a Lemmy community using an URL instead of its name, which doesn't work well for people on different instances. Try fixing it like this: !nostupidquestions@lemmy.world

CommunityLinkFixer@lemmings.world · 1 pts · 3y

Hi there! Looks like you linked to a Lemmy community using an URL instead of its name, which doesn't work well for people on different instances. Try fixing it like this: !nostupidquestions@lemmy.world

rm_dash_r_star@lemm.ee · 2 pts · 3y

A link to an instance is always going to be absolute so you just type the name of the instance. Most of the time the editor links it, but it still doesn't understand some of the domain names, for example lemm.ee links but lemmy.world does not. If the editor fails to link you can prefix the name with https://, for example https://lemmy.world

The link fixer bot shows how to link a community for Lemmy, but it's different for kbin. The problem is if you use an absolute link to a community, you redirect the user away from their instance. The !community@instance.name format makes links relative so you stay on your own instance. Now we have the bot and it will post a fix, but better not to call the bot. Just do it right from the start.

There's still the problem of how to do a relative link for a post. If someone knows I'd like to see that. At this point all post links are absolute and direct you away from your instance.

Today@lemmy.world · 0 pts · 3y

On the web i just copy the url. I haven't found an easy way on the apps.

Edit - Connect has a share button.