Index: openacs-4/packages/acs-subsite/www/register/logout.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/register/logout.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-subsite/www/register/logout.tcl 17 May 2003 10:02:25 -0000 1.2 +++ openacs-4/packages/acs-subsite/www/register/logout.tcl 16 Oct 2003 20:44:58 -0000 1.3 @@ -6,10 +6,17 @@ @cvs-id $Id$ } { - {return_url "/"} - + {return_url ""} } +if { [empty_string_p $return_url] } { + if { [permission::permission_p -object_id [subsite::get_element -element package_id] -party_id 0 -privilege read] } { + set return_url [subsite::get_element -element url] + } else { + set return_url / + } +} + ad_user_logout db_release_unused_handles