diff options
author | Pascal Seeland <pascal.seeland@tik.uni-stuttgart.de> | 2019-11-19 16:00:54 +0100 |
---|---|---|
committer | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2019-11-19 16:00:54 +0100 |
commit | e6951338c2880b1614296fc3ad73cd73e0a7bac1 (patch) | |
tree | 10ff8ec00aa0be559869df013927b82662a075ac | |
parent | 55a59acde87f0f278f88f6fb235052fd62c77496 (diff) | |
download | ecs-e6951338c2880b1614296fc3ad73cd73e0a7bac1.tar.gz ecs-e6951338c2880b1614296fc3ad73cd73e0a7bac1.zip |
Fix redirection problem for ECS Docker instances.protocol_rel_url__transient
With this protocol relative redirect we don't have to export fix ports
for ECS Docker instances.
-rw-r--r-- | app/controllers/admin/participants_controller.rb | 4 | ||||
-rw-r--r-- | config/routes.rb | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/admin/participants_controller.rb b/app/controllers/admin/participants_controller.rb index e2af77e..5e1c8cd 100644 --- a/app/controllers/admin/participants_controller.rb +++ b/app/controllers/admin/participants_controller.rb @@ -24,10 +24,6 @@ class Admin::ParticipantsController < ApplicationController # TODO verify http methods - def default - redirect_to admin_participants_path - end - def index list render :action => 'list' diff --git a/config/routes.rb b/config/routes.rb index bef9b0c..915db53 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -58,8 +58,8 @@ resources :events, :only => [:index] do match :fifo, :via => [:get, :post], :on => :collection end -get '/admin' => 'admin/participants#index' -root 'admin/participants#default' +get '/admin', to: redirect('admin/participants'), protocol: '//' +root to: redirect('admin/participants'), protocol: '//' # The priority is based upon order of creation: first created -> highest priority. |