diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-05-16 17:06:26 -0500 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-07-11 12:55:25 -0600 |
commit | 3358afa758c7db96ea8fce2a10cdf9c0abe85216 (patch) | |
tree | 74ab1040e343b43706b677e8c8f5582e640ff483 /config | |
parent | 61f0e89484be5aca5d22ab63c72b08575f7e3f6d (diff) | |
download | gitlab-ce-3358afa758c7db96ea8fce2a10cdf9c0abe85216.tar.gz |
Update the help_page_path route to accept paths directly instead of using parameters.
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 5ee0bd422fa..3160fd767b8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -89,9 +89,9 @@ Rails.application.routes.draw do mount Grack::AuthSpawner, at: '/', constraints: lambda { |request| /[-\/\w\.]+\.git\/(info\/lfs|gitlab-lfs)/.match(request.path_info) }, via: [:get, :post, :put] # Help + get 'help' => 'help#index' - get 'help/:category/:file' => 'help#show', as: :help_page, constraints: { category: /.*/, file: /[^\/\.]+/ } - get 'help/:category/:subcategory/:file' => 'help#show', as: :deep_help_page, constraints: { category: /.*/, subcategory: /.*/, file: /[^\/\.]+/ } + get 'help/*path' => 'help#show', as: :help_page get 'help/shortcuts' get 'help/ui' => 'help#ui' |