Index: openacs-4/packages/new-portal/tcl/portal-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/tcl/portal-procs.tcl,v diff -u -r1.179.2.16 -r1.179.2.17 --- openacs-4/packages/new-portal/tcl/portal-procs.tcl 29 Mar 2007 19:20:58 -0000 1.179.2.16 +++ openacs-4/packages/new-portal/tcl/portal-procs.tcl 4 May 2007 07:24:50 -0000 1.179.2.17 @@ -1708,7 +1708,10 @@ set element(link_hideable_p) $config(link_hideable_p) # apply the path hack to the filename and the resourcedir - set element(filename) "[www_path]/$element(filename)" + # Only do this if the element filename does not start with "/packages" + if {[string first "/packages" $element(filename)] < 0} { + set element(filename) "[www_path]/$element(filename)" + } # DRB: don't ruin URLs that start with "/", i.e. the form "/resources/package-key/..." if { [string index $element(resource_dir) 0] ne "/" } {