this post was submitted on 26 Apr 2025
23 points (100.0% liked)

New to Lemmy

717 readers
33 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
 

How can I link to a Lemmy post in a way that another Lemmy user that can view the linked page without the "You must log in or sign in to vote or comment" message (when they are already logged in)?

And vice versa: how can I click on a Lemmy link and not get that problem?

top 17 comments
sorted by: hot top controversial new old
[โ€“] Rentlar 12 points 2 days ago (1 children)

The proper way to link to someone's post or comment is to copy the Permalink, or the URL at the rainbow star logo symbol. That doesn't really solve your issue though.

Some apps automatically convert links to avoid the logged out issue, some don't.

Another solution is https://lemmyverse.link/ to make lemmy links server agnostic.

[โ€“] klu9 1 points 22 hours ago (1 children)

Thanks.

I've been trying out some front ends the last few weeks (Tess first, now Alexandrite) so didn't see the rainbow button.

I think the equivalent in Alexandrite is the Original Post button, which for this post gives this:

https://lemmy.ca/post/42943146 (which opens in "regular" Lemmy web)

I don't see one on comments.

If I give lemmyverse.link the URL straight from my current Alexandrite front end, it gives me an error:

https://alex.lemmy.ca/lemmy.ca/post/42943146

We don't support this link :/

If you think that's a mistake, please let us know on GitHub: https://github.com/RikudouSage/lemmyverse.link

[โ€“] klu9 2 points 22 hours ago (1 children)

Lemmyverse and lemshare both give an error if I give it a "front-end URL" (e.g. alex or tess) but work if I do several additional steps to get a "non-front-end" URL.

https://lemmyverse.link/lemmy.ca/post/42943146

[โ€“] Rentlar 1 points 22 hours ago* (last edited 22 hours ago) (1 children)

Correct. The frontend URL solves the problem for you in a sense, when you open alex.lemmy.ca/[other server address]/post/[other server post #] you can stay logged into lemmy.ca and it shows the correct thing.

The idea though, is that each client (at the moment, Lemmy v1.0 may change this) is expected to handle it their own way, so the original URL is ideal (other frontends call this Permalink) if you are making a lemmylink redirect link. Does the linked clips icon for someone not on your server give a link to their server or one to Lemmy.ca? The original one is always the on the originating server of the person who submitted the post or comment.

[โ€“] klu9 1 points 21 hours ago (1 children)

Does the linked clips icon for someone not on your server give a link to their server or one to Lemmy.ca?

Sorry, no idea. And I don't know what the "linked clips icon" is.

[โ€“] Rentlar 2 points 21 hours ago (1 children)

Nvm that gives the frontend link only. Link to original comment doesn't appear to be a feature on alex.lemmy.ca. However there's only one extra step you need to do.

You just have to remove the alex.lemmy.ca/ part before the actual server name to obtain the original URL.

[โ€“] klu9 1 points 21 hours ago

Ah, I tried removing just the alex. part , without success. Didn't notice the duplication of the lemmy.ca/ part.

[โ€“] [email protected] 8 points 1 day ago (2 children)

No native way exists yet. You need to use services such as https://lemsha.re/

Lemmy version v1.0.0 should solve this problem within Lemmy by rewriting remote instance links as local.

[โ€“] klu9 2 points 22 hours ago (1 children)

Thanks. At first I thought it didn't work, but there's a work around.

If I give it:

https://alex.lemmy.ca/lemmy.ca/post/42943146

I get:

This URL is not supported

If I give it (click "Original Post" button, page opens in new tab, regular web, not a front end like Alexandrite, copy from URL bar):

https://lemmy.ca/post/42943146

I get: https://lemsha.re/lemmy.ca/post/42943146

Clicking on that takes me to an intermediate page asking if I want to follow the link "as is" or visit on my instance.

So it is possible, with multiple additional steps when using a front end like Alex.

[โ€“] [email protected] 2 points 22 hours ago* (last edited 21 hours ago) (1 children)

Yep. Alternative frontend links don't work. You will have to use the instance's domain, which is lemmy.ca. You still should be redirected to your alexandrite frontend if you set the Photon UI setting to alex.lemmy.ca in the preferences menu (works for Tesseract, so I guess alexandrite should as well) .

[โ€“] klu9 2 points 22 hours ago

Thanks for the info.

[โ€“] [email protected] 4 points 1 day ago (1 children)

Any lemsha.re equivalent for Mastodon?

[โ€“] [email protected] 8 points 2 days ago* (last edited 2 days ago)

The other comments are correct, but I believe Lemmy v1.0 will give us a better way to link to posts, which should be released some time this year.

https://github.com/LemmyNet/lemmy/pull/5057

[โ€“] [email protected] 6 points 2 days ago (1 children)

One other option is to get a browser extension for this issue (I think there is one for Firefox, not sure about Chrome). I have not personally tried them.

[โ€“] [email protected] 3 points 1 day ago (1 children)

I have tried one, and it works very well. However, it only solves the "how can I click on a Lemmy link and not get that problem?" Sending someone else a link is still an issue.

In case people are interested, here's the extension and script I installed:

Violentmonkey + Lemmy Universal Link Switcher

Best way to avoid accidentally leaving your home instance.

Lemmy Universal Link Switcher, or LULs for short, scans all links on all websites, and if any link points to a Lemmy instance that is not your main/home instance, it rewrites the link so that it instead points to your main instance.

[โ€“] klu9 1 points 22 hours ago

I've installed Violentmonkey... but I don't know how to install the Lemmy link script.

I've read through the whole Azzurite page, still clueless.

I tried clicking on the Violentmonkey extension logo > Find scripts for this site, first GF, then OUJs, both "no scripts found".

In case It was because I'm on a front end (alex), I also tried with a non-front-end page. GF: no scripts found. OUJS: Error 429 too many requests. Again 429 after several minutes.