What's the correct way to link to a community on a different instance?

https://feddit.de/post/971890

What's the correct way to link to a community on a different instance? - Feddit

Say I want to link to community x on instance y.org [http://y.org]. How do I post this so that someone from instance z.org [http://z.org] will end up at z.com/c/[email protected] [http://z.com/c/[email protected]], but someone from a.org [http://a.org] ends up on a.com/c/[email protected] [http://a.com/c/[email protected]]?

With Lemmy it's [email protected]
From kbin it's the same but with an @ instead of !.
IDK how others have search set up. There may not be a way
Did you mean to link that specifically to kbin?
No. Just an example, but I used this sub after editing my comment

Well from what it looks like, on my instance, is that your [email protected] is linking to https://kbin.social/m/[email protected].

I think what OP is after, is a way to make it link to the reader's own instanced version of [email protected]

I was under the impression that the exclamation mark was designed to do exactly that: take everything after the ! and interpret the [email protected] into whatever the user's instance uses for links (m for kbin, c for lemmy).

Some day there will be a standard link style... for now it seems like a huge mess :'D The ! doesn't work on kbin (for me, at least), nor do links with c/ where we use m/, but the @-link does, which is neat considering I'd not found any short link style that did until seeing that one :'D Seems like others think the !-link is the thing to do, some give absolute links, some try other things besides. Growing pains, teething issues... might as well say "wheee" while the ride's still bumpy ^.^

I did some investigation into this in https://codeberg.org/Kbin/kbin-core/issues/199, but stopped short of actually fixing it or spinning up an instance to investigate further, as just didn't really have the time and energy (and haven't yet).

Fixing the ! links probably isn't too hard, but I'm not one to try anything without being able to run it. And really there should be an alias for /c/. I haven't used Symfony so can't tell if it's as easy as I hoped. I've had countless times where I thought something would be easy but it turned out hard and vice versa...

Links to magazines with the exclamation mark syntax (!<magazine>@<domain>) are broken

kbin currently has a bug with the `[email protected]` syntax. Your link becomes `https://kbin.social/c/[email protected]`, which isn't valid (should be https://kbin.social/m/Utah). It's a little weird because while the `c/` part is what we'd expect if it was a Lemmy sub, it still shouldn't be repeating the domain. I'm sure that'll be fixed shortly, though. Maybe I'll go dig into the code myself. At any rate, the `@[email protected]` syntax should work in kbin. I'm unclear if it works for Lemmy. Here's a link so you can try it: @[email protected]

Codeberg.org