this post was submitted on 10 Nov 2024
17 points (100.0% liked)

New to Lemmy

295 readers
2 users here now

Did you just join Lemmy? This community is for you!

Do you want to help new users around? Then this community is for also you!

Thank you all for being here, it makes a big difference



FAQ


I don't know what to post

founded 1 year ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/21832647

SOLUTION: literally write out [exclamation mark]community@instance. Do not use the autocomplete function. This works in both the sidebar and comments.

Using the URL markdown method (to have the display text be different from the dynamic link) impacts other UIs.

If you enter this:

You get this:

The links in the screenshot above will work in a graceful manner irrespective of what instance (or even what UI/platform?) you use.


Original Text

What are the best practises for adding links to other communities in your sidebar?

I mod the LW hardware community and all the links are tied to LW.

So https://programming.dev/c/linuxhardware

is linked via https://lemmy.world/c/linuxhardware@programming.dev

But that would mean anyone not on LW would get a logged out view of LW accessing the programming.dev/linuxhardware community. I don't have a programming.dev account so I added an LW-specific URL.

Is there some sort of markdown code that would "auto redirect" the user to a view based on their instance without any use of explicit URLs. For a second I thought that's what the exclamation mark does, but turns out it's just a shortcut for adding community URLs.

top 2 comments
sorted by: hot top controversial new old
[โ€“] cyberic@discuss.tchncs.de 4 points 2 weeks ago

Thanks for posting the solution!

[โ€“] OpenStars@piefed.social 2 points 2 weeks ago

Thank you so much for sharing!

To help clarify in case it may be confusing (somehow I wanted to read Original Text as like Alternate Link Text, as in the text displayed in on place of an a full URL, and got lost for a moment myself:-), the cross-post was originally the question (bottom part of this message), which evolved into the answer portion (at the top), though the discussion took place in the cross-post rather than here. Probably that's obvious or at least not difficult to find out, but just in case:-).