Feature #16615
closedAdd the ability to set a pid for logout
0%
Description
If the user logs out in a secured area of the site he will get a 404, cause after logging out the user isn't allowed to see the page.
This especially for sites that are using the more advanced 404 features of TYPO3 4.0.1, which is IMHO very good style to use (regarding search engine optimization, Google Sitemap, etc.).
An easy fix for this would be to set an optional configuration value for a logout pid, that's used as action for the logout form.
e.g.
if ($GLOBALS['TSFE']->loginUser) {
if ($logintype == 'login') {
...
$action_pid = $GLOBALS['TSFE']->id;
} else {
...
$action_pid = isset($this->conf['logoutPid']) ? isset($conf['logoutPid']) : $GLOBALS['TSFE']->id;
}
...
$markerArray['###ACTION_URI###'] = htmlspecialchars($this->pi_getPageLink($action_pid, '_top'));
...
}
(issue imported from #M4318)
Files