Index: openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl,v diff -u -r1.368.2.23 -r1.368.2.24 --- openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 28 Jun 2019 09:47:55 -0000 1.368.2.23 +++ openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 28 Jun 2019 10:25:15 -0000 1.368.2.24 @@ -372,7 +372,15 @@ } } - set template_file [ns_normalizepath $template_file] + if {[info exists template_file]} { + # + # strip the leading "/" added by ns_normalizepath. + # + # TODO: check use-cases, with the restricted case actually still + # makes sense. + # + set template_file [string range [ns_normalizepath $template_file] 1 end] + } set form_redirect [:form_parameter "__form_redirect" ""] if {$form_redirect eq ""} { set form_redirect [$f pretty_link -query [export_vars {