Drupal Logout Destination
Each time I logged out, I would be returned to a page that said, “You are not authorized to access this page. There seemed to be a conflict with the access control for anonymous users (which upon logout, I became an anonymous user) and accessing the logout screen which seemed to be a “user only” page.
I have been working on a logout destination page. As with other redirects based on requested pages, I had created a refresh page that directed users back to the home page in the page.tpl.php file:
if ($_REQUEST['q'] == 'logout') {
print ' ';
}
The problem with the redirect is that I would still see the same message. And trying to modify the access control for node content worked, but introduced the same message on other pages. I also tried calling logout?destination=somepage without success.
After a long darned time, I realized that the problem could be found in administer/site configuration/site information where the default front page was stored. When I modified that to not be one of the node pages, and instead directed it back to index.php, we were set!










