fix routing of revisions ending with a / (via ..)