Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Tom Violence ( TomViolence@lemmy.one )  to Asklemmy@lemmy.mlEnglish · 3 years ago

Is there a way to make instance-agnostic links?

message-square
message-square
16
link
fedilink
15
message-square

Is there a way to make instance-agnostic links?

Tom Violence ( TomViolence@lemmy.one )  to Asklemmy@lemmy.mlEnglish · 3 years ago
message-square
16
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 register to comment.
  • boomboxnation ( boomboxnation@beehaw.org ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    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

    • Tom Violence ( TomViolence@lemmy.one ) OP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      That’s perfect! Thank you :)

    • Edo78 ( Edo78@feddit.it ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      On my instance ( feddit.it ) I see two broken links:

      • https://feddit.it/post/asklemmy@lemmy.ml
      • https://feddit.it/post/canada@lemmy.ca

      both return 404: couldnt_find_post

      • boomboxnation ( boomboxnation@beehaw.org ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 years ago

        Doh! I forgot the /c/, correcting.

        • Edo78 ( Edo78@feddit.it ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 years ago

          sorry, still nope … now they are https://feddit.it/comment/asklemmy@lemmy.ml and still 404

    • gingerman ( gingerman@lemmy.ca ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      Should these links work? I’m viewing this thread from Lemmy.ca and both give me a 404 error. When testing with jerboa, the app crashes

    • Willie ( Willie@kbin.social ) 
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      Both of those links send me back to this post on lemmy.ml, through kbin, so if that is the end goal, then it worked.

  • jrubal1462 ( jrubal1462@kbin.social ) 
    link
    fedilink
    arrow-up
    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

    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.

  • fennec ( fennec@feddit.de ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    Yes it would be very convenient, right now if I’m recommending a community I simply write out the URL manually to make sure it routes via the respective user’s instance first.

  • Catsrules ( Catsrules@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 years ago

    Edit 6 Cleaning up post.

    You can link the community as a whole, but posts you can’t. Solutions to posts are being discussed on Github

    https://github.com/LemmyNet/lemmy-ui/issues/1048

    This is how to link communities.

    [My text here](/c/asklemmy@lemmy.ml)

    For example if you want cat@lemmy.world you would type this

    [Cat pics on Lemmy.world](/c/cat@lemmy.world)

    Equals

    Cat pics on Lemmy.world

    Or aww@lemmy.ml you would type this.

    [Aww on Lemmy.ml](/c/aww@lemmy.ml)

    Equals

    Aww on Lemmy.ml

    You need to have the /c/ or it won’t work. Don’t put the ! or it won’t work.

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.

  • 1 user / day
  • 1 user / week
  • 518 users / month
  • 4K users / 6 months
  • 1.49K local subscribers
  • 55.8K subscribers
  • 6.92K Posts
  • 153K Comments
  • Modlog
  • mods:
  • Evan ( Cloak@lemmy.ml ) 
  • mekhos ( mekhos@lemmy.ml ) 
  • tmpod ( tmpod@lemmy.pt ) 
  • OrangeSlice ( 14specks@lemmy.ml ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code