Changeset - c177f304eb40
[Not reviewed]
beta
0 1 0
Mads Kiilerich - 13 years ago 2013-03-21 11:26:58
madski@unity3d.com
Transplanted from: f3ad952deed4
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.
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/config/routing.py
Show inline comments
 
@@ -583,6 +583,10 @@ def make_map(config):
 
                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='',
0 comments (0 inline, 0 general)