# HG changeset patch # User Marcin Kuzminski # Date 2016-06-03 09:56:03 # Node ID 24314e869ccef423399f7dec781201df8467788d # Parent 39f9227870786c4f7b2c8f6551d715fef9f24edc pull-requests: make the catch all route also support nicer format with '-' diff --git a/rhodecode/config/routing.py b/rhodecode/config/routing.py --- a/rhodecode/config/routing.py +++ b/rhodecode/config/routing.py @@ -551,8 +551,12 @@ def make_map(config): m.connect('admin_add_repo', '/add_repo/{new_repo:[a-z0-9\. _-]*}', action='add_repo') m.connect( - 'pull_requests_global', '/pull_requests/{pull_request_id:[0-9]+}', + 'pull_requests_global_0', '/pull_requests/{pull_request_id:[0-9]+}', action='pull_requests') + m.connect( + 'pull_requests_global', '/pull-requests/{pull_request_id:[0-9]+}', + action='pull_requests') + # USER JOURNAL rmap.connect('journal', '%s/journal' % (ADMIN_PREFIX,),