Clicking notification in same topic reloads page
-
If you have a notification about a post in a topic, and you are already currently viewing this topic, then clicking the notification reloads the page.
This is particularly annoying when you are already looking at the post that triggered the notification or if it's very close to where you are, and in a long thread with a lot of pictures, because of the "smart loading" (I don't know what the name of that feature is, but it certainly should have "smart" in its name, given how dumb it is).
-
Not apologizing, but I think this is because the href is a /post/numbers form, and currently the forum doesn't seem to smartly handle those...
At least it's no longer double-redirecting when that happens.
-
@Tsaukpaetra And yet, if you click on a reply-from tag in the post header (like the one in this post where I'm replying to you) it will scroll to the post in question rather than reload at it, so that functionality does exist in Node; it's just not hooked up to notifications.
-
@masonwheeler said in Clicking notification in same topic reloads page:
@Tsaukpaetra And yet, if you click on a reply-from tag in the post header (like the one in this post where I'm replying to you) it will scroll to the post in question rather than reload at it, so that functionality does exist in Node; it's just not hooked up to notifications.
Yeah, I'm pretty sure they would do the reload thing too if they didn't have the onclick handler overriding it.
Should be easy!
-
@masonwheeler said in Clicking notification in same topic reloads page:
it will scroll to the post in question rather than reload at it
Only if the post in question is already loaded, I think.
-
@aliceif makes sense because if the post in question is loaded, it can find it without a server round trip, but if it isn't loaded, it has to make a round trip to find the topic and might as well treat it the same as any other link-to-post.