• melonpunk@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I’d like to know too. I was hoping it would be something simple like !community@host.com which would resolve for everyone. Didn’t work when I tried it, though I might not have done it correctly.

    EDIT: I guess I could try again here [email protected]

    EDIT2: Nope: That link goes to https://lemmy.world/post/!asklemmy@lemmy.ml for me, which is not valid.

  • fubo@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year 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 [email protected] 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/.

  • jrubal1462@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I thought it worked if you just linked /c/[email protected]
    With the only caveat being that users on kbin will need /m/asklemmy.ml
    With the only caveat being that users on kbin will need /m/[email protected]

    I would normally test the crap out of these before posting since I really don’t know what I’m doing, but I’m on my phone and mostly busy at the moment. Sorry if it doesn’t work.

    • CoderKat@kbin.social
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Kbin needs /m/[email protected] (domain is important) or a bit simpler is with an @ symbol in front: @asklemmy (note: the domain is here but kbin currently renders it without the domain – that needs to be changed as it has potential to confuse and mislead)

      Downside to the /m/[email protected] format is that it doesn’t currently auto linkify. Gotta do [/m/[email protected]](/m/asklemmy@lemmy.ml) (/m/[email protected])

      Hopefully kbin soon fixes the [email protected] syntax. It’s currently broken. Once fixed, that should work for everyone.

        • jrubal1462@kbin.social
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          I’m the problem. As feared I fudged it up as I was rushing to type it up on my phone. As @CoderKat mentioned, the problem with typing it out as /m instead of using @, is that you have to manually enter the visible text in [ ] and the hyperlink in ( ). I got the hyperlink correct and beefed it on the visible text.

  • Perhyte@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Once your Lemmy web frontend upgrades to version 0.18, the following should all auto-link with no extra syntax:

    These should then all link to the instance you’re currently on.

    Note: because this is implemented in the frontend and does not change the underlying data, other Fediverse clients will not show these the same unless they also implement this themselves.