# 分类页面的详细404

**URL:** <https://meta.discourse.org/t/detailled-404-for-category-page/171444>\
**Category:** Feature\
**Created:** [2020年十一月26日 21:08 UTC](https://meta.discourse.org/t/detailled-404-for-category-page/171444 "2020-11-26T21:08:15Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2021年六月14日 21:50 UTC](https://meta.discourse.org/t/detailled-404-for-category-page/171444/8 "2021-06-14T21:50:32Z")

</div>

这似乎与 [Error page appears repeatedly after you try accessing a private page](https://meta.discourse.org/t/error-page-appears-repeatedly-after-you-try-accessing-a-private-page/170557/) 在同一时间出现了问题。

我认为通过将逻辑放入 `exception` 控制器中可以实现一个干净的修复方案，这样如果我们未来决定对 `detailed_404` 进行扩展，将会更加顺畅。

> <https://github.com/discourse/discourse/pull/13378>
>
> https://meta.discourse.org/t/detailled-404-for-category-page/171444/
> 
> This was… previously broken by 59ef48c0b9d70a6639a545d1c96f3cc6f93ebf2c (#11425, #11424, https://meta.discourse.org/t/error-page-appears-repeatedly-after-you-try-accessing-a-private-page/170557/).
> 
> 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.
> 
> :warning: This commit is a localization break. Translators should copy the \`not\_in\_group.title\_topic\` key to the \`not\_in\_group.title\_category\` key, changing "topic" to "category".

---

_[View the full topic](https://meta.discourse.org/t/detailled-404-for-category-page/171444)._
