this post was submitted on 24 Jun 2023
69 points (96.0% liked)

Asklemmy

43818 readers
869 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy πŸ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 5 years ago
MODERATORS
 

For example, this comment links to another community on another instance, but when clicked on, you're not actually able to interact with anything on that community, because you're suddenly not logged in.

It's doesn't function like linking to a subreddit, and I understand that that's because of federation, but is there a better way of doing this? It seems... very stupid that linking to a page would suddenly "log you out" for all intents and purposes, while searching that same community wouldn't.

Does this make sense?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 21 points 1 year ago (1 children)

Yes, but it just got released as part of Lemmy 0.18.0, which isn’t everywhere yet: https://lemmy.world/post/477633

[–] [email protected] 9 points 1 year ago (2 children)

I don't think so. I'm on 0.18 and links to posts and comments still go to the linked instance.

However COMMUNITY linking is working great! Clicking on a link to a community on a different instance keeps you on your own instance :)

[–] [email protected] 2 points 1 year ago (1 children)

There is no way to locally link to a specific post or comment.

[–] [email protected] 1 points 1 year ago

There's no way currently

[–] [email protected] 1 points 1 year ago (3 children)

Sounds like a big or missing feature. You might want to write it up on GitHub if you can or the [email protected] community.

[–] [email protected] 5 points 1 year ago (1 children)

You made your link to a fixed instance. Your source: [[email protected]](https://lemmy.ml/c/lemmy)

This is a functional instance agnostic link for older versions: [[email protected]](/c/[email protected]) - like this: [email protected]

The new version should just let you type [email protected] and automagically make it instance agnostic. However the actual links need to either be /c/ or /u/.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (2 children)

What is in my post is what the UI’s autocomplete provided. If it’s problematic or wrong, you should probably report a bug to the UI repo (I don’t know the details about these links).

[–] [email protected] 2 points 1 year ago

I think maybe because my instance is still on 0.17.4 the !comm@instance type of link doesn't work. /c/ and /u/ did work on the old versions though, you just had to make them manually.

So there'd be no point reporting the bug. Not unless we check on another 0.18 instance to see if your lemmy.ml link is agnostic there.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

I just checked on sh.itjust.works, the only other instance I'm on that is on 0.18 yet, and your link works there. Edit: However the source of your link, made on 0.18, is different to my link on 0.17.4.

Yours: Sounds like a big or missing feature. You might want to write it up on GitHub if you can or the [[email protected]](https://lemmy.ml/c/lemmy) community.

Mine: The new version should just let you type [[email protected]](/c/[email protected]) and automagically make it instance agnostic.

It looks like 0.18 creates an actual link in your comment when you make it, as a fall back for older versions, however that link is not agnostic. However if you view an old comment in 0.18 it will make an agnostic link for you, in spite of the old source. 0.18 apparently ignores the source in the comment where the link is not agnostic and just makes its own agnostic link out of the displayed text.

So maybe it would be better if 0.18 made a link like [[email protected]](/c/[email protected]) to ensure full compatibility.

[–] [email protected] 2 points 1 year ago (1 children)

Coupled with the new rendering of links, into what I believe are instance agnostic formats for 0.18, the system seems it will to work well.

[–] [email protected] 2 points 1 year ago (1 children)

I dug deeper and made a few edits lol it's not quite perfect. More than anything I don't get why it creates a non-agnostic link in the source.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

Test: [email protected]

Edit: [email protected]

Yep, that happens when you select it from the dropdown box. So it's the dropdown box that is making non-agnostic links to the host, however 0.18 ignores this and makes an agnostic link based on the text.

[–] [email protected] 1 points 1 year ago

Oh strange, that was made on sh.itjust.works in 0.18 but didn't create a link in the source.

Are you sure you didn't manually create yours? Or did you maybe select it from the dropdown box?

[–] [email protected] 3 points 1 year ago

It's already been on there. They just didn't get to it this release

[–] [email protected] 1 points 1 year ago (1 children)

Here’s the first statement on this new feature that I saw: https://zemmy.cc/comment/119470. Presumably they know more about the feature and who developed it.

I also suspect this link will demonstrate your point!

[–] [email protected] 1 points 1 year ago

Looks like there's no way to create an instance agnostic link to any specific comments. Here's my link for that same comment: https://lemm.ee/comment/378249, meanwhile the post instance's link: https://lemmy.ml/comment/912298, however yours is apparently the federated host link as that user is based in zemmy.cc.