Index: openacs-4/packages/sloan-bboard/www/category-unsubscribe.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/sloan-bboard/www/category-unsubscribe.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/sloan-bboard/www/category-unsubscribe.tcl 15 Feb 2002 21:27:06 -0000 1.1 +++ openacs-4/packages/sloan-bboard/www/category-unsubscribe.tcl 18 Mar 2002 05:14:30 -0000 1.2 @@ -10,6 +10,7 @@ forum_id:integer,notnull category_id:integer,notnull,bboard_category_id {sub_page ""} + {return_url ""} } # Not strictly right @@ -20,8 +21,12 @@ -category_id $category_id -subscriber_id [ad_verify_and_get_user_id] } -if [empty_string_p $sub_page] { - ad_returnredirect "forum-by-category?category_id=$category_id&forum_id=$forum_id" +if {[empty_string_p $return_url]} { + if [empty_string_p $sub_page] { + ad_returnredirect "forum-by-category?category_id=$category_id&forum_id=$forum_id" + } else { + ad_returnredirect "subscriptions" + } } else { - ad_returnredirect "subscriptions" + ad_returnredirect $return_url }