404 page after user deletes account

AI-generated summary

The discussion addresses a 404 error occurring after a user deletes their account on Discourse. dandv reported the issue, noting that navigating to the activation link and deleting the account leads to a missing page. While codinghorror initially defended this as correct behavior, watchmanmonitor suggested the user should be redirected to the default site with a success confirmation. Mittineague acknowledged that while a 404 makes logical sense for a deleted page, a success warning would be more user-friendly. Overmind agreed, emphasizing that average users would likely perceive the 404 as an error rather than a successful deletion. codinghorror later clarified that self-deletion is restricted to very new accounts with minimal activity, making the scenario rare. However, cpradio identified a separate bug where a confirmation modal appears but is immediately bypassed by a page refresh, preventing the user from interacting with it. Finally, dandv proposed a solution to redirect users to the homepage (/) after deletion, allowing them to continue browsing if they found the content valuable.

  1. Sign up for Discourse
  2. Click the confirmation link in the email
  3. Activate the account at /users/activate-account/
  4. Preferences → Delete account

Note the /404 page.

This is correct behavior. If you are proposing a different behavior, go ahead and propose it.

I’d have expected to get sent to the default site page, with a confirmation flash showing deletion was successful.

4 „Gefällt mir“

Yes, I guess it could be more graceful.

I wasn’t surprised or confused by the 404.

If I’m on a page and I delete the page getting a 404 makes sense to me.

But some kind of “success warning” thing could work too.

5 „Gefällt mir“

The average user would think it was an error if there wasn’t some sort of success your account has been deleted message.

1 „Gefällt mir“

It is extraordinarily rare for a user to self delete their account. Remember this is only allowed if the account is less than a few days old and has no more than one post.

3 „Gefällt mir“

So I just attempted this on my sandbox and then on try.discourse.org, and a modal window appears when you delete your account (with an OK) button, but the page is forcing a refresh/navigate to action that prevents you from being able to read the Modal or click the button…

It seems like there is a bug here, as that Modal should remain visible until the OK button is clicked.

5 „Gefällt mir“

I would propose redirecting the user to /. Maybe they found the content valuable but don’t want to be a member.

1 „Gefällt mir“