diff options
author | connorshea <connor.james.shea@gmail.com> | 2016-04-05 21:54:57 -0600 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-07-11 12:48:38 -0600 |
commit | 61f0e89484be5aca5d22ab63c72b08575f7e3f6d (patch) | |
tree | cc95be25ec217ca105063cfe3784b33ad935a0e5 /config | |
parent | 734e44ee79590be6d9f01ca3e815304221a5c88d (diff) | |
download | gitlab-ce-61f0e89484be5aca5d22ab63c72b08575f7e3f6d.tar.gz |
Make "Get started with Builds" Help Page link work properly
This is probably a horrible way of fixing this issue, but it does work.
I can’t find much information on linking this deeply with Rails routes.
Resolves #14872.
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index b4f83c58bbd..5ee0bd422fa 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -91,6 +91,7 @@ Rails.application.routes.draw do # 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/shortcuts' get 'help/ui' => 'help#ui' |