The Lemmy Club
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Tom Violence@lemmy.one to Asklemmy@lemmy.mlEnglish · 3 years ago

Is there a way to make instance-agnostic links?

message-square
message-square
8
link
fedilink
5
message-square

Is there a way to make instance-agnostic links?

Tom Violence@lemmy.one to Asklemmy@lemmy.mlEnglish · 3 years ago
message-square
8
link
fedilink

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?

alert-triangle
You must log in or # to comment.
  • boomboxnation@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 years ago

    That’s what this does:

    [Some text here](/c/community@instance.here)
    

    Tap the ‘more’ skinny hamburger menu just above below this message to ‘view source’ of the below:

    blah blah blah links to asklemmy@lemmy.ml

    Actually…better, here is one for an instance that is neither yours or the one you posted into:

    blay harg vlar

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

    I thought it worked if you just linked /c/asklemmy@lemmy.ml
    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/asklemmy@lemmy.ml

    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
      ·
      3 years ago

      Kbin needs /m/asklemmy@lemmy.ml (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/asklemmy@lemmy.ml format is that it doesn’t currently auto linkify. Gotta do [/m/asklemmy@lemmy.ml](/m/asklemmy@lemmy.ml) (/m/asklemmy@lemmy.ml)

      Hopefully kbin soon fixes the !asklemmy@lemmy.ml syntax. It’s currently broken. Once fixed, that should work for everyone.

      • aebrer@kbin.social
        link
        fedilink
        arrow-up
        0
        ·
        3 years ago

        Weirdly enough on kbin.social for me /m/asklemmy.ml link in the post worked for me

        • jrubal1462@kbin.social
          link
          fedilink
          arrow-up
          1
          ·
          3 years 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
    ·
    3 years ago

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

    • !community@server.com
    • /c/community@server.com
    • /m/community@server.com
    • /u/username@server.com

    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.

    • Tom Violence@lemmy.oneOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      Nice, thanks for the info!

Asklemmy@lemmy.ml

asklemmy@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !asklemmy@lemmy.ml

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?

  • !lemmy_support@lemmy.ml
  • !fediverse@lemmy.ml
  • !selfhosted@lemmy.world

Looking for a community?

  • Lemmyverse: community search
  • sub.rehab: maps old subreddits to fediverse options, marks official as such
  • !lemmy411@lemmy.ca: a community for finding communities

Icon by @Double_A@discuss.tchncs.de

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 669 users / day
  • 1.72K users / week
  • 4.4K users / month
  • 12.6K users / 6 months
  • 101 local subscribers
  • 53.2K subscribers
  • 8.25K Posts
  • 396K Comments
  • Modlog
  • mods:
  • Evan@lemmy.ml
  • mekhos@lemmy.ml
  • tmpod@lemmy.pt
  • OrangeSlice@lemmy.ml
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org