]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
webish: fix directory url redirection
authorrobk-tahoe <robk-tahoe@allmydata.com>
Wed, 11 Jun 2008 19:46:28 +0000 (12:46 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Wed, 11 Jun 2008 19:46:28 +0000 (12:46 -0700)
commit021a9e370fb7c3993d7ca06ba748228612a5b45b
tree613e4935eb1499ab6bbcaba7b738eee37ed27eb7
parentaec1764baf5d50a46b4cbe4bbc23f8b5489bfbff
webish: fix directory url redirection

when rendering a directory in webish, if the url did not correctly include
a trailing slash '/' then the browser will be redirected to a url which
does.  this causes any relative links (e.g. the 'other representations'
which are links to files relative to the current directory) to be correctly
intrpreted as relative to the directory in question by the browser.

uses twisted's addSlash mechanism, which is designed for this purpose :-)
src/allmydata/web/directory.py