redirectPageLogout conflicts with $TYPO3_CONF_VARS['FE']['pageNotFound_handling']
Logout-Button is located on a page not accessible for logged out users.
RedirectPageLogout of felogin is set to a page with no access restrictions.
This configuration worked fine, I will be redirected to the specified page after logout.
After setting $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] to another accessible page I will always be redirected to this page and not to the one specified in redirectPageLogout.
It seems the problem arises in class.t3lib_userauth.php. There the function checkAuthentication is called and performs the log off. It seems that after that the protected page would be simply recognized as „not accessible or missing“ and therefor the pageNotFound_handling is called instead of checking for any redirectPageLogout settings.
#3 Updated by Jan Helke about 7 years ago
- Target version changed from 4.6.16 to 2336
First of all sorry for my inactivity. This bug originated from me, Marco was just so kind to post it here because my account wasn't working. Now the account is up and working and I took the bug under surveillance :-)
Yes, I can reproduce this behaviour in 4.7.x as well as in 6.0.x.
I tried to use the patch mentioned by Alexander but this unfortunately didn't solve the problem.
I have the following five pages:
--3: Sys-folder with testuser
--2: Redirect to this page after logout
--4: Page with login form
----5: Page with another login form
The login form on page 5 is configured to redirect the user after logout to page 2. After I hit the logout button on page 5 I will be redirected to page 4 instead of page 2. I've got the impression that TYPO3 could not find the redirect configuration on page 5 in the moment after the logout because the system couldn't access page 5 (due to insufficient user rights)