# Custom error page for inaccessible category

**URL:** https://meta.discourse.org/t/custom-error-page-for-inaccessible-category/125616
**Category:** Support
**Created:** [August 13, 2019, 1:43am UTC](https://meta.discourse.org/t/custom-error-page-for-inaccessible-category/125616 "2019-08-13T01:43:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![leog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leog/32/119839_2.png) [@leog](https://meta.discourse.org/u/leog)
#### Post date: [August 13, 2019, 1:43am UTC](https://meta.discourse.org/t/custom-error-page-for-inaccessible-category/125616/1 "2019-08-13T01:43:43Z")

</div>

Hello!

I was wondering if anyone had any clue how could I create a custom error page for an inaccessible category due to group permission.

Background: in order to have the voting plugin only used by certain people, a group was created. Unfortunately in order to have only that group of people voting capabilities, anyone outside it can’t even see that category due to the fact “View” access let’s a user vote as well. When anyone outside the group bumps into the inaccessible category (and not exactly by chance I should add) I would like to explain how they can join that group to be able to vote.

Thanks a lot in advance!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 13, 2019, 5:52am UTC](https://meta.discourse.org/t/custom-error-page-for-inaccessible-category/125616/2 "2019-08-13T05:52:05Z")

</div>

This is already discussed here

> [@Redirect to protected category after login](https://meta.discourse.org/t/redirect-to-protected-category-after-login/122577/5):
>
> I think this is a great idea. For many kinds of forums identifying that something is there is not a security hole and would really improve accessibility. The challenge here is really naming the site setting properly and explaining what it does. I’ve done my best below but would not be against edits. Here’s a mini spec: Add a new site setting detailed\_404, default false. “Provides more details to users about why they can’t access a particular topic. NOTE: This is less secure because users wi…

@dan this is still on your eventual todo list?

---

<div class="post-metadata">

### Author: ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)
#### Post date: [October 16, 2019, 10:42am UTC](https://meta.discourse.org/t/custom-error-page-for-inaccessible-category/125616/4 "2019-10-16T10:42:15Z")

</div>

There is a new site setting, `detailed_404`, that controls this. When enabled, it will try to provide more information about the error (ie which group can see the topic / category).

[https://github.com/discourse/discourse/pull/8014](https://github.com/discourse/discourse/pull/8014)

---

<div class="post-metadata">

### Author: ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)
#### Post date: [October 16, 2019, 10:42am UTC](https://meta.discourse.org/t/custom-error-page-for-inaccessible-category/125616/5 "2019-10-16T10:42:19Z")

</div>


