this post was submitted on 21 Jun 2023
8 points (90.0% liked)

Asklemmy

45308 readers
1045 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
 

Is there a way to make a link to a community of a foreign instance that opens on the instance of the user that clicks on it?

For example, I would like to make a link to !some_community@foo.com that, when a user of bar.com clicks on it, opens https://bar.com/c/some_community@foo.com instead of https://foo.com/c/some_community.

If it's not possible, don't you think it would be convenient?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] fubo@lemmy.world 1 points 2 years ago* (last edited 2 years ago)

Yes, you can do this using a relative URL!

Here's an example.

Here's how I wrote it:

[Here's an example.](/c/asklemmy@lemmy.ml)

Because this URL doesn't have a protocol or a domain, your browser fills those in from the URL of the page you're on when you see it. Since that's on your local Lemmy instance, you'll see a link to !asklemmy@lemmy.ml on that instance.

Also: When you're looking at a Lemmy comment, if you don't know how the author wrote the markup for it, you can use the "view source" button underneath the "..." menu.


Note: These links will NOT work between Lemmy and Kbin, because Kbin uses /m/ instead of /c/.