Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-05-17 01:06:26 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-07-11 21:55:25 +0300
commit3358afa758c7db96ea8fce2a10cdf9c0abe85216 (patch)
tree74ab1040e343b43706b677e8c8f5582e640ff483 /config
parent61f0e89484be5aca5d22ab63c72b08575f7e3f6d (diff)
Update the help_page_path route to accept paths directly instead of using parameters.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb4
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'