How do I format a link to a remote lemmy community that allows someone to subscribe to it directly from their own instance?
An example of such a post is here https://lemmy.blahaj.zone/post/4711. This is a post made for a community on mander.xyz, posted to lemmy.ml and viewed through my instance blahaj.zone.
Whichever instance you view it on, the link formats so that you can subscribe to it directly from the instance you are viewing it on.
I’ve tried using /c/communityname formatting, but that doesn’t seem to work.
Support / questions about Lemmy.
It looks like it was done as a relative link, like this:
It’s possible to look at the source of a Lemmy post by clicking on the 3 dots in the toolbar that is under the poster and community but above the post’s contents, and then clicking the “view source” button.
Perfect. Thank you!
I learned two things from that post :)
Yes, that is how I did it :-)
It works for communities because their relative url is always /email@example.com
For posts and comments it won’t work because the post and comments IDs are different for each instance. For example, this post is at https://mander.xyz/post/520556 at mander and at https://lemmy.blahaj.zone/post/6506 at blahaj.zone, so the relative urls are different.