Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Square Singer ( squaresinger@feddit.de )  to Technology · 3 years ago

What's the correct way to link to a community on a different instance?

message-square
message-square
26
link
fedilink
43
message-square

What's the correct way to link to a community on a different instance?

Square Singer ( squaresinger@feddit.de )  to Technology · 3 years ago
message-square
26
link
fedilink

Say I want to link to community x on instance y.org. How do I post this so that someone from instance z.org will end up at z.com/c/x@y.org, but someone from a.org ends up on a.com/c/x@y.org?

alert-triangle
You must log in or # to comment.
  • trashhalo ( trashhalo@beehaw.org ) 
    link
    fedilink
    arrow-up
    13
    ·
    3 years ago

    This seems to be a good topic to plug my GitHub issue that would make !technology@beehaw.org correct clickable links with no extra effort on the users part. I even broke down how to implement that change in the codebase!

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

    • rm_dash_r_star ( rm_dash_r_star@lemm.ee ) 
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      A “link community” button in the formatting bar below the comment box would be ideal.

  • crashspeeder ( crashspeeder@lemmy.fmhy.ml ) 
    link
    fedilink
    arrow-up
    12
    ·
    3 years ago

    The best way is to use relative links, such as !technology@beehaw.org

    What I did there was simply [!technology@beehaw.org](/c/technology@beehaw.org). This link doesn’t start with the protocol and site, but instead assumes the current site, and starts with /c/my_comunity@my_site.tld, meaning it will be routed to the same instance.

    This will probably not work for those on Kbin, since their communities (magazines) don’t start with /c/, but rather with /m/. If anyone knows a good way for this to work for both, I’d be glad to adopt that myself going forward.

    • justgohomealready ( justgohomealready@lemmy.pt ) 
      link
      fedilink
      arrow-up
      6
      ·
      3 years ago

      In my phone, for some reason, Jerboa crashes when I tap your link.

      • crashspeeder ( crashspeeder@lemmy.fmhy.ml ) 
        link
        fedilink
        arrow-up
        10
        ·
        3 years ago

        That’s a known bug in Jerboa. It’s already been reported and the dev acknowledged it.

    • WorseDoughnut 🍩 ( WorseDoughnut@vlemmy.net ) 
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      For kbin at least, there’s currently a Firefox add-on that adds an icon next to any full or relative links that sends them to the corresponding kbin magazine version of the lemme community.

      https://addons.mozilla.org/en-US/firefox/addon/kbin-link/

    • LibertyLizard ( LibertyLizard@slrpnk.net ) 
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      3 years ago

      So if I copy the pink text it should work if I understand correctly?

      !technology@beehaw.org

      It does, thank you!

  • Shortcake ( Shortcake@kbin.social ) 
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    3 years ago

    With Lemmy it’s !technology@beehaw.org (do Lemmy users see this as “!technology”?)
    From kbin it’s the same but with an @. @technology (@technology@ beehaw.org)
    IDK how others have search set up. There may not be a way

    • Speff ( speff@melly.0x-ia.moe ) 
      link
      fedilink
      arrow-up
      5
      ·
      3 years ago

      I’m not sure that’s correct. When I click your first link, it’s going to https://kbin.social/m/!technology@beehaw.org. What OP wants is a way to post the link and (in my case) go to https://melly.0x-ia.moe/c/technology@beehaw.org

    • WorseDoughnut 🍩 ( WorseDoughnut@vlemmy.net ) 
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      Did you mean to link that specifically to kbin?

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

        No. Just an example, but I used this sub after editing my comment

        • WorseDoughnut 🍩 ( WorseDoughnut@vlemmy.net ) 
          link
          fedilink
          arrow-up
          4
          ·
          3 years ago

          Well from what it looks like, on my instance, is that your !technology@beehaw.org is linking to https://kbin.social/m/!technology@beehaw.org.

          I think what OP is after, is a way to make it link to the reader’s own instanced version of technology@beehaw.org

          I was under the impression that the exclamation mark was designed to do exactly that: take everything after the ! and interpret the community@instance.example into whatever the user’s instance uses for links (m for kbin, c for lemmy).

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

            Some day there will be a standard link style… for now it seems like a huge mess :'D The ! doesn’t work on kbin (for me, at least), nor do links with c/ where we use m/, but the @-link does, which is neat considering I’d not found any short link style that did until seeing that one :'D Seems like others think the !-link is the thing to do, some give absolute links, some try other things besides. Growing pains, teething issues… might as well say “wheee” while the ride’s still bumpy .

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

              I did some investigation into this in https://codeberg.org/Kbin/kbin-core/issues/199, but stopped short of actually fixing it or spinning up an instance to investigate further, as just didn’t really have the time and energy (and haven’t yet).

              Fixing the ! links probably isn’t too hard, but I’m not one to try anything without being able to run it. And really there should be an alias for /c/. I haven’t used Symfony so can’t tell if it’s as easy as I hoped. I’ve had countless times where I thought something would be easy but it turned out hard and vice versa…

  • mcmxci ( mcmxci@lemmy.one ) 
    link
    fedilink
    arrow-up
    3
    ·
    3 years ago

    Took this from the sidebar at newcommunities

    [link text](/c/community@instance.com)
    
    This provides a link that should work across instances, but in some cases it won’t
    

    To my knowledge this doesn’t work if a user in your instance hasn’t previously searched for the community

  • vacuumpizzas ( vacuumpizzas@lemmy.dbzer0.com ) 
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    Relative links seem to be the best way to accomplish what you’re looking to do. So, in your example, it’s /c/x@y.org.

    Doing it live

    Reference: https://lemmy.dbzer0.com/post/6063

    • Square Singer ( squaresinger@feddit.de ) OP
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      That seems to be the only option that works.

  • vacuumpizzas ( vacuumpizzas@lemmy.dbzer0.com ) 
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    Relative links seem like the best way to accomplish what you’re looking to do: https://lemmy.dbzer0.com/post/6063

Technology

technology

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: !technology@beehaw.org

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:

  • Free and Open Source Software
  • Programming
  • Operating Systems

This community’s icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

Visibility: Public
globe

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

  • 219 users / day
  • 1.05K users / week
  • 2.2K users / month
  • 5.22K users / 6 months
  • 5.11K local subscribers
  • 43.6K subscribers
  • 6.39K Posts
  • 107K Comments
  • Modlog
  • mods:
  • Chris Remington ( remington@beehaw.org ) 
  • alyaza [they/she] ( alyaza@beehaw.org ) 
  • TheRtRevKaiser ( TheRtRevKaiser@beehaw.org ) 
  • gyrfalcon ( gyrfalcon@beehaw.org ) 
  • rs5th ( rs5th@beehaw.org ) 
  • coldredlight ( coldredlight@beehaw.org ) 
  • Leigh ( SemioticStandard@beehaw.org ) 
  • TheRtRevKaiser ( TheRtRevKaiser@kbin.social ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code