Load comment form through AJAX when 'Show reply form on the same page as comments' is disabled

Created on 7 September 2022, about 2 years ago
Updated 14 February 2023, over 1 year ago

Problem/Motivation

On 8.x-1.0-beta4 version, the 'Add new comment' link doesn't work, when clicking on it, nothing happens. On the dev version this changed, because of a js fix, so on dev version the link goes to the add new comment page, but the comment form is not loaded via ajax.

I only found a similar issue for D7, I linked that ticket as possibly related.

Steps to reproduce

1. Add a comment field to a content type.
2. In the comment field settings, uncheck the checkbox next to: 'Show reply form on the same page as comments'
3. Visit a node created in this content type, there is a link 'Add new comment' on the top right content area. (Because of the config set in 2. the initial comment form is not displayed by default, instead this link is displayed.
4. Clicking on the link doesn't do anything (on 8.x-1.0-beta4), or on current dev version it loads the new comment page, but not via ajax.

Proposed resolution

Load comment form through AJAX when 'Show reply form on the same page as comments' is disabled in the comment options

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇪Belgium keszthelyi Brussels

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.

Production build 0.71.5 2024