Error after SSO logout

If I do a logout I get the following Error:

If I click on the link its says:
“{“errors”:[“Dazu musst du angemeldet sein.”],“error_type”:“not_logged_in”}”

(translation;: You have to be logged in.)

Oh and Unread is the default View for the forum. If I change it back, it works.

Did you try setting logout redirect somewhere safe like the forum root ?

6 Likes

That solved it, thank you very mutch!

3 Likes

I am confused, I just tried:

  1. visiting unread on try.discourse.org
  2. logging out
  3. I was redirected to root.

Is the issue here that you set an invalid logout redirect?

Sam, set Unread to the default forum view and logout. It breaks, probably because there is no unread for anon. I can take a look at it.

1 Like

well, don’t do that… that is not really a supported configuration, would only be sort-of-supported on “Requires login” forums.

3 Likes

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.

I believe we added validation to ensure unread is never first in the menu. Plus users can pick a different home page if they wish today.

How is stuff going?

2 Likes