Merge fix for bug #569358. Redirect requests so people can URL hack.
If you edit /files/directory to become /files/directory/filename, redirect it to the /view/directory/filename, and conversly if you go to /view/directory redirect it to /files/directory. This way people can edit the URL in a logical way and still get the view they are expecting.