In Drupal 8+, the "Add comment" form can be shown on a separate page by going to Manage fields for the content type that has comments and unchecking the box Show reply form on the same page as comments.
This shows an Add new comment link on the node (in this case, an article):
The UX problem is that when you click the Add new comment link, you are taken to a new path (for example, comment/reply/node/2/comment#comment-form
) but the Add new comment link is still there:
This is confusing because clicking the link merely returns you to the page you are already on, so it may appear that nothing has happened.
How can I remove this "Add new comment" link only on entities that have the comment form embedded (/comment/reply/entity/entity_id
)?