From 3358afa758c7db96ea8fce2a10cdf9c0abe85216 Mon Sep 17 00:00:00 2001 From: Connor Shea Date: Mon, 16 May 2016 17:06:26 -0500 Subject: Update the help_page_path route to accept paths directly instead of using parameters. --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') 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' -- cgit v1.2.3