A discard confirmation modal appears when clicking ‘New Post’ if a post is pending approval

A discard post confirmation modal (see below images) is shown after clicking ‘New Post’ or ‘Reply’ action in a certain topic if you have a pending post for approval.

Steps to Reproduce:

  1. Create a new post that requires admin/moderator approval.

  2. After submitting the post, click “New Post.”

  3. A discard post confirmation modal appears.

  4. Click Cancel on the modal.

  5. Click “New Post” again — the discard confirmation modal appears again.

  6. Click Cancel again.

  7. Try to reply to any post.

Actual Result:

  • The discard post confirmation modal still appears, even when replying to a post.

Expected Result (?):

  • The user should be able to create a new post or reply to existing posts normally without seeing the discard confirmation modal.

Workaround:

  • The user refresh the page to remove the modal confirmation.

Discourse Version: 2026.1.0