You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that comments have unique identifiers, and the date is actually an anchor pointing to #remark42__comment-a2d4ab9e-....
Unfortunately since remark is never loaded when the page loads, what's the idiomatic way to handle fragment identifiers? On my site I added a conditional load + hash reset if a hash is found but wondered how people deal with this generally?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Loving remark42!
I noticed that comments have unique identifiers, and the date is actually an anchor pointing to
#remark42__comment-a2d4ab9e-...
.Unfortunately since remark is never loaded when the page loads, what's the idiomatic way to handle fragment identifiers? On my site I added a conditional load + hash reset if a hash is found but wondered how people deal with this generally?
Example link that should take you straight to the comments: https://www.nmattia.com/posts/2019-01-15-easy-peasy-nix-versions/#remark42__comment-a2d4ab9e-bb4f-4aef-a1c4-7831e3aa488e
Additionally, is there a way to change how the identifiers are generated, to future proof the URLs?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions