Why does detailed 404 security setting not explain why I can't access subcategory?

We have used Discourse groups extensively so that people have to join a group to see most subcategories.

People are now complaining that, if someone sends them a link to something which is in a group they are not a member of, they get a mystifying 404 page that tells them nothing.

I would like the page to tell them which group the subcategory is in (with a link to the group, if it is public or invite only).

I stumbled on the “detailed 404” setting under Security, and turned it on. Now things are even worse! The page you get to looks the same, but the url at the top is no longer the url the user pasted in, but /404. There is no information visible on the page to tell you why it is private.

The page source is quite different, however, and there is a header:

    <meta name="description" content="This forum is owned by Wigan Local Group. It is a public discussion forum for the work of the group. Enquire here to contact us or join any of our private forums.">

(This is the forum description post).

Is there some other setting somewhere that I need to change to make this work as designed?

Can you provide specific URLs as examples? I am having trouble understanding what you’ve written here.

1 Like

Difficult, as out server is not open to the public. If you would like to PM me your email address, I can invite you to it.

Can you provide representative URLs with the relevant bits (domain, etc) changed to other nonsense words?

I think what you’re describing is normal behavior for the site.

Instead of the 404 page showing on categories that a user does not have access to, you want a page that shows them what the category is and to be able to join the group to access it?

There’s no way to configure this in Discourse, but you could get someone to write a plugin for this in marketplace. This isn’t a trivial effort, though, so you will need to have a reasonable budget for this.

3 Likes

The alternative is to acknowledge that a post or category exists, potentially leaking information.

1 Like

Thanks. If that is the case, what is the detailed 404 setting for, then?

1 Like