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)

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.

WiνΛlem OrtΛνíz
creator
link
fedilink
23M

Ok thanks for answering :)

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

WiνΛlem OrtΛνíz
creator
link
fedilink
13M

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

I think your comment id is wrong, this one works: https://lemmy.ml/post/352183/comment/223677

WiνΛlem OrtΛνíz
creator
link
fedilink
1
edit-2
3M

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

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.

WiνΛlem OrtΛνíz
creator
link
fedilink
33M

Ok, I’ll do that. Thanks !

Support / questions about Lemmy.

  • 0 users online
  • 12 users / day
  • 24 users / week
  • 55 users / month
  • 157 users / 6 months
  • 3 subscribers
  • 252 Posts
  • 1.24K Comments
  • Modlog