staticdir doesn't cause trailing slash to be added to directory URLs served by index.html
Configured a staticdir.dir and staticdir.index requested a URL of a directory without a trailing slash. Such was not supplied via redirect to the browser, so relative URLs failed.
The problem seems to be in static.py, in staticdir, the next to last line in the function.
cherrypy.request.is_index = filename[-1] in (r"\/")
it should read
cherrypy.request.is_index = True
Note that filename[-1] is not a slash when this line is executed (in all my test cases, anyway, maybe sometimes it is), but the condition that it is an index has been determined by previous conditions.
It looks like the trailing_slash tool is robust enough to deal with the case when filename[-1] would be a slash (if there are any such cases), as long as is_index is set properly.
Reported by v+python