diff options
author | Sanad Liaquat <sliaquat@gitlab.com> | 2018-09-21 14:10:20 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-09-21 14:10:20 +0000 |
commit | 0896d6942d30e3cc743c85dcc8fe9699a2a02289 (patch) | |
tree | 05d2e8d6808de79160e4b2a7aefa64bea2c3d001 /config | |
parent | f93200897703a7610ee054d050ef92acdc7eeb1f (diff) | |
download | gitlab-ce-0896d6942d30e3cc743c85dcc8fe9699a2a02289.tar.gz |
Fix leading slash in redirects and add cop
Diffstat (limited to 'config')
-rw-r--r-- | config/routes/instance_statistics.rb | 2 | ||||
-rw-r--r-- | config/routes/wiki.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config/routes/instance_statistics.rb b/config/routes/instance_statistics.rb index 824ef47cda3..1102ef6b017 100644 --- a/config/routes/instance_statistics.rb +++ b/config/routes/instance_statistics.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true namespace :instance_statistics do - root to: redirect('/-/instance_statistics/conversational_development_index') + root to: redirect('-/instance_statistics/conversational_development_index') resources :cohorts, only: :index resources :conversational_development_index, only: :index diff --git a/config/routes/wiki.rb b/config/routes/wiki.rb index cd3828b743c..1a07b1c206b 100644 --- a/config/routes/wiki.rb +++ b/config/routes/wiki.rb @@ -2,7 +2,7 @@ scope(controller: :wikis) do scope(path: 'wikis', as: :wikis) do get :git_access get :pages - get '/', to: redirect('/%{namespace_id}/%{project_id}/wikis/home') + get '/', to: redirect('%{namespace_id}/%{project_id}/wikis/home') post '/', to: 'wikis#create' end |