News for hackers. Stuff that matters.

Ask HN: When favoriting a thread, could the link keep us on the thread?

As a long long time user, I'm quite fond of HN and the quality content and insightful discussions. And the moderation here is simply unmatched.

My only quibble is that when I click the link to favorite a submission/thread, I end up on my favorites page, which means I then have to click back to return to the thread. Not sure why it works like this, but generally, I'd much rather just end up back on the original thread.

Is this something that can be changed, or is there some other reason it works like this?

( 4 comments | 4 points | on HN )
Re:Ask HN: When favoriting a thread, could the link keep us ... by gus_massa on Wednesday October 20, 2021 @07:19PM (#28938127)
I guess they implemented it using a html link because it's easier. They reserve the JavaScript magic for very special cases.

Anyway, I think it's a good idea. Send it to the mods by email [email protected] because these threads sometimes are not noticed.

Re:Ask HN: When favoriting a thread, could the link keep us ... by mstipetic on Thursday October 21, 2021 @06:18AM (#28942493)
I think the ping attribute could be useful for that https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#...
Re:Ask HN: When favoriting a thread, could the link keep us ... by cpach on Thursday October 21, 2021 @03:45AM (#28941542)
AFAICT this feature should also be possible to implement server-side using Arc.
Re:Ask HN: When favoriting a thread, could the link keep us ... by gus_massa on Thursday October 21, 2021 @07:00AM (#28942757)
The difficult part is to return to the exact position in the page. I guess that returning to the top of the same comment page is a change in one line.