this post was submitted on 06 Jul 2022
8 points (100.0% liked)

Lemmy Support

4713 readers
38 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Hi, I need to be able to open a single comment on top of the window, like a permalink (I'm creating a hypertext game on lemmy), but the two link methods available in the GUI doesn't behave like they should.

  • The first "link" button doesn't act like a permalink at all when there are nested comments above it, I don't know why (on Firefox 91.10.0es), but sometimes it just shows some nested comments above instead of the actual comment itself

  • The second "link" button just end on a 404 page. How is this one supposed to work ?

So I was wondering if there is another way of displaying only a single comment by its id, but looking at the HTML dom it doesn't seem like comments have unique ids ?

Hope someone can answer :)


Edit : I checked in another browser, still the same issue. Also this problem is happening with non-nested comments too, the first link to a comment is not reliable and shows random content on the page, but this seems to be happening only when the comments count begins to be high under a post (more than twenty or so? cannot say exactly)

top 7 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 2 years ago (1 children)

The second link is the fedilink, use it when you want to view a specific post or comment from another federated instance. For that, paste the url into search and the item will be fetched.

[–] [email protected] 2 points 2 years ago

Ok thanks for answering :)

I'm still puzzled by the other link not being a true permalink.

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

For instance, this link shows other nested comment in my browser : https://lemmy.ml/post/352183/comment/223664

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

Ok thanks, I don't get why there are non working links....

This one either won't work, although it's the official "link" : https://lemmy.ml/post/352183/comment/223464

But the fedilink is working in search bar : https://lemmy.ml/comment/223464

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

Ah, i think the problem is because lemmy-ui only renders the first x comments in a long thread. If your linked comment is later than that, it doesnt get highlighted. Certainly a bug, if there isnt a Github issue for this already, you should open one.

[–] [email protected] 3 points 2 years ago

Ok, I'll do that. Thanks !