set path_info_list [split [ad_conn path_info] "/"] if {[ns_queryget aggregator_id] eq ""} { set aggregator_id [lindex $path_info_list 0] ns_set put [ns_getform] aggregator_id $aggregator_id } set url [expr {[llength $path_info_list] == 2 ? [lindex $path_info_list 1] : "index"}] rp_internal_redirect "/packages/news-aggregator/www/${url}"