Thank you for providing the screenshots and details.
It looks like your logged-out level is redundant as it does not have any Access Conditions or Capabilities.
Can you take a look at all your other levels and see if their “Non-Member Action” is missing a page/URL to redirect to? As seen in this screenshot:
https://nextcloud.rvp-saffonia.de/s/2pJs696sZYb5QxA?dir=undefined&openfile=35284
When that is missing, unauthorized users will be redirected to the front page, which is likely what is happening here. Prior to updating to 2.2.1, what page were unauthorized/logged-out users redirected to (when trying to access restricted pages)?
The problem is not that the redirection is pointed to the front page. That is fine.
The problem is that pages get redirected, that shouldn’t! All public pages were redirected …
But i hopefully found the issue in another level which is synchronized with “logged_in”. There were suddenly a new “empty” access condition group.
I don’t know how it appeared there, i have no screenshot and i can’t recreate it but it was a condition group without!!! a type like “authors” or so …
My original only condition group was and now again is a “pages” condition group.
Since i deleted this “empty” condition everything works fine again and i have no redirects on public pages.
Seems like this “empty” condition matched all pages or so.
This is definitely still a problem, even with the purported fix in v2.2.
I also solved it by reverting to 2.1.3.
Would be happy to help if any more debugging information is needed.
@preufonia
Thank you for letting me know about the empty condition! I’m glad removing those solved it. I will look into why empty conditions are occuring; they really should only occur if you have created ab Access Condition at some point, containing a taxonomy/post type created by another plugin, and now that plugin is uninstalled/deactivated.
Ie the content is no longer recognized, but the condition remains and now matches everything.
@marcool04
Could you please open a new thread and provide screenshots of your Access Conditions? That will make it easier for me to help. Can you also check if you have any empty conditions?