Why YSK: right now, Lemmy’s autocomplete for the !community syntax isn’t working correctly.

It will appear to work, like so:

But the link produced will redirect you away from your home instance and leave you unable to vote/subscribe…


To fix this issue, you’ll need to manually edit the autocompleted link like so:

BAD LINK: [!youshouldknow@lemmy.world](https://lemmy.world/c/youshouldknow)

⬇️⬇️⬇️ Remove the domain (i.e.: https://lemmy.world) & append the @ identifier (i.e.: @lemmy.world)

GOOD LINK: [!youshouldknow@lemmy.world](/c/youshouldknow@lemmy.world)


Removing the domain like this transforms it into a local link which prevents the instance redirection. Doing this will make it easier for newcomers to join your community and participate in discussions!

Those interested can monitor Github issues #369 & #1048 for when this UI bug is fixed!

  • fubo@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    YSK that a URL without a protocol or domain is a relative URL.

    It’s “relative” to the page that it’s displayed on.

    Your browser fills in the protocol and domain from the URL of the page you’re on when you click on it. That’s how it stays local to the instance that you’re viewing it on.

    • chaorace@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      Of course! Perhaps one of the greatest public goods to come out of FOSS is the public bug tracker. Not a “known issue” list, not a “ticket system”, but rather a place where you can see work happening on your issue in realtime.

  • FlaxPicker@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    If you are using the mlem app to browse, the good link will crash your app so don’t click it for now. They are aware and it is raised as an issue in their github.

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

    Hmm this still doesn’t quite work for those of us visiting from kbin because from kbin we access this community as: https://kbin.social/m/youshouldknow@lemmy.world/ so even the /c/ doesn’t match up.

    We probably will need some special markup that each instance converts to their own local community / magazine format.

  • SanguinePar@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Hi - just FYI, the Good link makes the app Jerboa crash (for me at least). Probably something needing changed in the app, but wanted to share anyway.

      • SanguinePar@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Still crashing, sadly. I’m sure it’s Jerboa though. It’ll get sorted at some point, thanks anyway :-)

        • chaorace@lemmy.sdf.orgOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Bummer… looks like this is indeed a Jerboa issue (Github #556). Hopefully that gets resolved soon so we can have links that reliably work on every frontend.

          • SanguinePar@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Yeah that’d be great.

            Thanks for checking GitHub, I can’t really find my way around on there. Good that it’s a known issue at least.

  • aMalayali@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Cool

    Is there any way to link to posts like this?
    Found that crossposting does not provide a instance neutral link.

    • chaorace@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Unfortunately, no. For posts/comments, there’s currently no way to create cross-instance permalinks. You can follow progress on fixing that issue via Github #2987.

  • Barbarian@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    There is an issue with this. If nobody on the instance of the user that clicks the link is subscribed to that community, this will result in a 404 error. If at least one person on the instance is subscribed, it’ll work. In a browser. Not in Jerboa.

    • NotaCat@lemmy.fmhy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      As a temporary bandaid, it looks like every instance needs a sacrificial user/volunteer to subscribe to every community they can find.

    • chaorace@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Yes, unfortunately. This is one of those situations where it’s technically less user friendly to browse on a smaller instance (since large instances are more likely to already be subscribed to a given random community). Of course, this issue affects anyone who tries to visit a given community via their home instance, not just people using this particular link style.

      Right now this problem is being tracked on the backend Github as #2951. Hopefully they manage to sand off this particular rough edge ASAP.