Change logout path?
dugawug - December 24, 2007 - 00:35
I'm surprised but I guess no one else has asked how to do this. Each time I logout of Drupal, I get redirected to my site's domain. I'd really like to change this, but so far I can't figure out how. Any help?
I'd assume it's using some core site variable, which I don't want to change, but for just logging out, I want to give a different path to redirect to.

No, unfortunately there
No, unfortunately there isn't a core site variable that you can change... it's hard wired in the code. You could hack the core files, but that is generally inadvisable. You might be able to kludge a fix, though.
You can create a page, and give it a url alias of "logout" (this will override the default logout procedure). Next, put the contents of the user_logout() function into the page (editing the php as needed), and enable the php filter.
Good luck!
- Corey
Logout redirect (log out destination)
With Drupal 5.7 adapt then use the following link:
http://www.example.com/logout&destination=node/mylogoutpage
This link do a log out then redirect to the page "mylogoutpage".
On your site, replace "www.example.com" with your domain and change the "node/mylogoutpage" with the path of your goodbye page.
If you use menus disable the default "logout" link in Admin --> Menus and then manually create a link somewhere on your site that uses the above link.
Source: http://drupal.org/node/120253
Feature request?
You might also want to file a Feature Request here:
http://drupal.org/node/add/project-issue/drupal
Select the User module as the component and maybe there will be a better way of doing this in version 7. Or perhaps just the groundwork being laid for a module to do it in the future.
feature request
feature request submitted...thanks for the idea