How can I link to a Lemmy post in a way that another Lemmy user that can view the linked page without the “You must log in or sign in to vote or comment” message (when they are already logged in)?

And vice versa: how can I click on a Lemmy link and not get that problem?

  • Rentlar
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 days ago

    Correct. The frontend URL solves the problem for you in a sense, when you open alex.lemmy.ca/[other server address]/post/[other server post #] you can stay logged into lemmy.ca and it shows the correct thing.

    The idea though, is that each client (at the moment, Lemmy v1.0 may change this) is expected to handle it their own way, so the original URL is ideal (other frontends call this Permalink) if you are making a lemmylink redirect link. Does the linked clips icon for someone not on your server give a link to their server or one to Lemmy.ca? The original one is always the on the originating server of the person who submitted the post or comment.

    • klu9OP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      Does the linked clips icon for someone not on your server give a link to their server or one to Lemmy.ca?

      Sorry, no idea. And I don’t know what the “linked clips icon” is.

      • Rentlar
        link
        fedilink
        arrow-up
        2
        ·
        2 days ago

        Nvm that gives the frontend link only. Link to original comment doesn’t appear to be a feature on alex.lemmy.ca. However there’s only one extra step you need to do.

        You just have to remove the alex.lemmy.ca/ part before the actual server name to obtain the original URL.

        • klu9OP
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          Ah, I tried removing just the alex. part , without success. Didn’t notice the duplication of the lemmy.ca/ part.