Merge branch '21535-multi-wf-delete'
[arvados.git] / services / api / app / controllers / static_controller.rb
index b421f54596f9f5274eef4f943fb4ab09a2f96321..b7693f342055c00a7431c589d52afc91d2be86d2 100644 (file)
@@ -12,8 +12,8 @@ class StaticController < ApplicationController
   def home
     respond_to do |f|
       f.html do
-        if Rails.configuration.workbench_address
-          redirect_to Rails.configuration.workbench_address
+        if !Rails.configuration.Services.Workbench1.ExternalURL.to_s.empty?
+          redirect_to Rails.configuration.Services.Workbench1.ExternalURL.to_s, allow_other_host: true
         else
           render_not_found "Oops, this is an API endpoint. You probably want to point your browser to an Arvados Workbench site instead."
         end