← Back to Blog Comments Support
chris10207
in the component, the method listPosts
is trying to retrieve the existing attached comments based on the current URL.
However, the post URL might have changed if the slug has been somehow changed.
In that case, we lose all the existing comments.
Could we update this code and retrieve the comments using the post id retrieved from the property blog_slug
to avoid this issue? (that I am facing right now in production)
chris10207
in the same line, to avoid conflict with other plugins, could you rename the page variable posts
to comments
, that would make more sense and will avoid any clash with any blog posts component
1-2 of 2