email link from a "liked" comment has unexpected result when loading page
-
This one is pretty edge case, I hope you can follow.
To reproduce:
Step 1 – subscribe to at least “notify of new replies to my comment”
Step 2 – “Like” aka vote up a comment.
Step 3 – If another user replies to the comment you liked, you will get an email ( this should be an option, I’d prefer to not email users when someone replies to a comment that user has liked… but that’s not the focus of this issue).
Step 4 – click the link in the email.
Step 4 NOTE — this may only happen when the comment being linked to would normally be loaded after the “load more comments” button as been clicked.
OK – Expected behavior:
The page loads, then auto-scrolls down to the reply to the comment I liked / loads the comment I voted, and the reply to that comment together.
Observed behavior:
https://cl.ly/image/2x0D0U3x2w2s
The comment you see at the very top of the stack, highlighted is the Reply to the comment that I liked.
If I now scroll down to the bottom of the comments, click “More Comments” button – eventually I will get to the comment I liked, and the reply is there where it should be .
If I scroll back up to the top, the comment you see in the screenshot, highlighted in yellow is now gone.
So, in other words, the logic that tries to load the proper comment is breaking and is loading the comment out of context, at the very top of the comment stack.
The fix would be to either find that — determine if it is a bug (fix it) or if that is by design (consider changing the design)… and / or remove or provide the admin to remove sending an email when a user has only liked/voted on a comment… in other words only subscribe me if I actually made a comment or made a reply, not if I just clicked the vote link.
Unfortunately, I can’t give you access to the client site or their staging to check this out…. If you can’t reproduce this on your end, let me know… perhaps I can throw together a demo site, fill it with demo data and see if I can get it to happen again…. but it would be so much faster if you can just try the steps above on your own demo site ??
Thanks!
- The topic ‘email link from a "liked" comment has unexpected result when loading page’ is closed to new replies.