I hope someone can help me here.
I’m building a forum, similar to reddit capabilities. The notification piece is almost done, except I’m getting stuck on linking to a direct post or comment when a user clicks on notification.
Here’s the simple use case:
- User A creates a post
- User B comments on a post
- User A gets a notification that user B comment on the post.
User A clicks on the notification, then he should be taken to the post where he sees 1) the post and 2) the comment in question (assume there’s multiple comments, but it should zoom directly into that particular comment. So I presume we need to send the data correctly to the new page, and the ensure only the right data shows up.
If you have a reddit account, you’ll see how that works:
I received a notification:
When I click on the notification, it leads me to the specific comment in question:
Now, on my project, I’ve tried sending the parameters in the URL, but that’s not working. It doesn’t zoom to right comment and the information is not loading correctly.
Do you have any suggestions? Thanks!