Index: openacs.org-dev/packages/edit-this-page/www/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/edit-this-page/www/index.vuh,v diff -u -r1.2 -r1.3 --- openacs.org-dev/packages/edit-this-page/www/index.vuh 11 Aug 2002 04:04:49 -0000 1.2 +++ openacs.org-dev/packages/edit-this-page/www/index.vuh 22 Nov 2002 03:35:42 -0000 1.3 @@ -18,27 +18,25 @@ # get the portion of the url following the package directory set name [ad_conn path_info] -#ns_log Notice "index.vuh: request for $name" +ns_log Notice "index.vuh: request for $name" if { [string index $name end] == "/" } { # it's in a subdirectory, and we know there's no # other package mounted on that subdirectory. ns_returnnotfound } -set server_root [file dirname [ns_info pageroot]] - if {[empty_string_p $name] || $name == "index"} { - set path "$server_root/[etp::get_application_param index_template]" + set path "/[etp::get_application_param index_template]" } elseif {[string match "etp*" $name]} { # this trickery is for serving pages from the top level, # where the acs-subsite package is mounted rather than # the editthispage package. normally the request processor # finds these before invoking this file. - set path "$server_root/packages/edit-this-page/www/$name" + set path "/packages/edit-this-page/www/$name" } else { - set path "$server_root/[etp::get_application_param content_template]" + set path "/[etp::get_application_param content_template]" # set up form variables so we can pass the "name" # variable to the content page. @@ -49,7 +47,7 @@ ns_log Notice "Edit This Page index.vuh: serving $path" -rp_serve_abstract_file $path +rp_internal_redirect $path