mirror of
https://github.com/discourse/discourse.git
synced 2025-04-19 09:39:08 +08:00

This was previously broken by 59ef48c0b9d70a6639a545d1c96f3cc6f93ebf2c (#11425, #11424). Centralize the logic into the exception controller, which avoids the problematic bug and makes it easy to add additional detailed 404 pages in the future.