After Post Comment and ajax got success the comment not updated once refresh the page the only updated the comments

Created on 7 January 2021, over 4 years ago
Updated 6 May 2025, about 1 month ago

Problem/Motivation

After Post Comment and ajax got success the comment not updated once refresh the page then only updated the comments

Steps to reproduce

Install Ajax Comment Module
1. In node page comment section post the comment ajax got complete but comment not updated while reload/refresh page only updating.
Kindly update the module in stable release.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Component

Code

Created by

🇮🇳India rugnesh88

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Ajax Comment module isn't updating the comment section after successful AJAX submission, requiring a page reload to show the new comment. This is likely because the AJAX response from the server lacks the necessary Drupal AJAX command (like AppendCommand or ReplaceCommand) to instruct the front-end to refresh the comment list. To fix this for a stable release, developers need to ensure the AJAX response includes the correct command targeting the comment container with the updated comment HTML, and thoroughly test the dynamic updating functionality. They should cat language translator also check for any JavaScript errors that might be hindering the update process.

Production build 0.71.5 2024