I want it to detect the duplicate comment and give a warning on the same page
When a user rewrites a comment, they are redirected to wp-comments-post.php and sees a warning.
I want it to stay on the same page and see the warning. How can I do that?
With the comment_duplicate_message(filter function), I can decide what to write. but the main thing is to show the warning.