• crashspeeder@lemmy.fmhy.ml
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    2 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.

    • Speff@melly.0x-ia.moe
      link
      fedilink
      arrow-up
      2
      ·
      2 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 🍩@vlemmy.net
          link
          fedilink
          arrow-up
          1
          ·
          2 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@kbin.social
            link
            fedilink
            arrow-up
            0
            ·
            2 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@kbin.social
              link
              fedilink
              arrow-up
              1
              ·
              2 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@lemmy.one
    link
    fedilink
    arrow-up
    2
    ·
    2 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 wont
    

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