Forum OpenACS Q&A: Preventing double slashes in URLs from files accessed via dir listings

If you click on a file listed in an AOLserver directory listing, you will probably notice that the URL contains a double slash.


The existence of the double slash will break links/images in somefile.html that use relative paths in the form of ../otherdir/otherfile.html.

To prevent the double slash, I modified the _ns_dirlist proc in <aolserver src>/tcl/fastpath.tcl, changing:

set prefix "${location}${url}/"

set prefix "${location}${url}"


Have you submitted this as a patch to the AOLserver project at SourceForge?