# HG changeset patch # User Mads Kiilerich # Date 1363861618 -3600 # Node ID c177f304eb401cce9c7df118fa6abebefa257e1e # Parent ca7785fae35441314d8e305f35b1def2a5636e78 files: accept URLs with no path and no slash after the revision This kind of URLs will frequently be edited by hand and trailing slashes are usually just ignored. diff -r ca7785fae354 -r c177f304eb40 rhodecode/config/routing.py --- a/rhodecode/config/routing.py Wed Mar 20 15:32:23 2013 +0100 +++ b/rhodecode/config/routing.py Thu Mar 21 11:26:58 2013 +0100 @@ -583,6 +583,10 @@ controller='files', revision='tip', f_path='', conditions=dict(function=check_repo)) + rmap.connect('files_home_nopath', '/{repo_name:.*?}/files/{revision}', + controller='files', revision='tip', f_path='', + conditions=dict(function=check_repo)) + rmap.connect('files_history_home', '/{repo_name:.*?}/history/{revision}/{f_path:.*}', controller='files', action='history', revision='tip', f_path='',