Users reported an error after SSO logout when ‘Unread’ was set as the default forum view: anonymous users were redirected to a page requiring login, triggering the error “You have to be logged in.” Falco suggested setting a safe logout redirect (e.g., forum root), which resolved the issue for Lutz. sam confirmed that logging out from ‘Unread’ on try.discourse.org redirects to root, but Falco clarified that setting ‘Unread’ as default breaks for anonymous users since unread topics don’t exist for them. sam noted this configuration isn’t officially supported unless the forum requires login. Lutz found that redirecting logout to ‘latest’ avoids the error and suggested adding a warning in the admin panel or auto-redirecting anonymous users from ‘Unread’ to ‘latest’—though not urgent, as workarounds exist. sam mentioned validation already prevents ‘Unread’ from being first in the menu and users can choose a different homepage.
I set the logout redirect to forum/latest there is no error. Error comes back, if you are going to visit the forum without being logged in. After thinking about it, I changed the default view back to latest. Otherwise no guests could read the forum.
I still have no real insight (working on it) - but maybe it is possible to add a warning text at the admin panel not to put unread first. Or maybe its is even possible to do an redirect from unread to latest or the second configured view, if you are not logged in? It’s not urgent at all since there is a workaround for it.