diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-11 23:49:03 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-15 19:25:37 +0300 |
commit | e24cb79f3196052395829b35d51693dc9de5afbe (patch) | |
tree | 4b3d9762e0d9ed90476f3ece2a3ad81661e95268 /config | |
parent | 1e27b68b364cfc0b504e7db429c2450d75b72cfd (diff) |
Add constraints to help#show route parameters
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index af58e095d9a..8dbe6d80ab7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -39,7 +39,7 @@ Gitlab::Application.routes.draw do # Help get 'help' => 'help#index' - get 'help/:category/:file' => 'help#show', as: :help_page + get 'help/:category/:file' => 'help#show', as: :help_page, constraints: { category: /[^\.]+/, file: /[^\.]+/ } get 'help/shortcuts' get 'help/ui' => 'help#ui' |