this post was submitted on 12 Jun 2023
117 points (100.0% liked)

You Should Know

276 readers
1 users here now

YSK - for all things that can make your life easier!

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules

1-All posts must begin with YSK. If you're a Mastodon user, then include YSK after @youshouldknow. This is a community to share tips and tricks that will help yourself improve on activities, skills and various other tasks in life.

YSKs are about self-improvement on how to do things, not for facts and figures.

2-In your post's text body, you must include the reason "Why YSK:"

3- Non-factual ideas or concepts based on conspiracy theories will be removed.

4-No self promotion or upvote-farming of any kind.

5-Any type of spamming will get you banned.

Partnered Communities:

Mental Health

No Stupid Questions

Jokes

Mildly Infuriating

Lemmy Review

Lemmy Be Wholesome

Lemmy Shitpost

To partner with our community and be included here, you are free to message me or comment on our pinned post.

Community Moderation

For inquiry on becoming a moderator of this community, you may comment on the pinned post of the time, or simply shoot a message to the current moderators.

founded 1 year ago
MODERATORS
 

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!

top 25 comments
sorted by: hot top controversial new old
[–] Barbarian@sh.itjust.works 11 points 1 year ago (2 children)

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 7 points 1 year ago (1 children)

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.org 4 points 1 year ago (2 children)

For those interested in taking on such a task, here's the most complete community browser at the moment: https://browse.feddit.de/

[–] impulse@lemmy.world 1 points 1 year ago (1 children)

Sounds like the perfect job for a bot to monitor that list and autosubscribe to every new community.

[–] chaorace@lemmy.sdf.org 7 points 1 year ago

I suspect that this may be somewhat frowned upon. The whole point of not grabbing all communities from all instances by default is to avoid massive traffic dumps every time a new instance joins the federation. Doing this via a bot is basically the equivalent of DDOSing your home instance!

It's less bad when a human does the same thing because:

  • A) A human will work more slowly than a bot
  • B) A human will likely only do this one time and then let the system continue working as intended afterward
  • C) A human can be easily reprimanded and told to stop if they're causing problems
[–] Pat12@lemmy.world 1 points 1 year ago

Is there a french instance? I can actually do the French and German ones since I am already creating and involved with those communities.

[–] chaorace@lemmy.sdf.org 5 points 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.

[–] FlaxPicker@lemmy.world 10 points 1 year ago (1 children)

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.

[–] kratoz29@lemmy.fmhy.ml 3 points 1 year ago

Same for Jeroba.

[–] justin@sh.itjust.works 6 points 1 year ago* (last edited 1 year ago) (1 children)

The "good link" gives a 404 if you aren't on the lemmy.world instance 🙃 unless that instance has a youshouldknow community I suppose.> !youshouldknow@lemmy.world

We really just need apps to linkify !youshouldknow@lemmy.world

[–] chaorace@lemmy.sdf.org 9 points 1 year ago* (last edited 1 year ago)

Doh! I totally meant to include instructions to append the target instance id to the link in my original post.

The post is now edited and fixed to use the correct link format as you've suggested. Thank you very much for your help.

[–] dopwop@lemmy.world 6 points 1 year ago

Thanks!

This is important information, to help introduce new users to communities from other instances!

[–] fubo@lemmy.world 5 points 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.

[–] LadyAutumn@lemmy.blahaj.zone 4 points 1 year ago

It'd be sweet if we could automate the process of discovering the community so that 9 times out of 10 we don't have to then search for the community and refresh the page to see it.

[–] sanguinepar@lemmy.world 3 points 1 year ago (1 children)

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.

[–] chaorace@lemmy.sdf.org 5 points 1 year ago* (last edited 1 year ago) (1 children)

~~This issue should be fixed now in the edited version of my post. I made a rather silly mistake in the original version that @justin@sh.itjust.works helped me solve.~~

[–] sanguinepar@lemmy.world 4 points 1 year ago (1 children)

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

[–] chaorace@lemmy.sdf.org 7 points 1 year ago (1 children)

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 5 points 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.

[–] brandonsh@lemmy.world 3 points 1 year ago (1 children)

Thanks for providing the Github links!

[–] chaorace@lemmy.sdf.org 2 points 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.

[–] RoyalEngineering@lemmy.world 2 points 1 year ago

Confusing bug. I thought I was doing something wrong.

[–] aMalayali 1 points 1 year ago (1 children)

Cool

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

[–] chaorace@lemmy.sdf.org 2 points 1 year ago (1 children)

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.

[–] aMalayali 1 points 1 year ago
load more comments
view more: next ›