X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/450b51a554050504d6b510c2c9c1adf463b937a0..3facf89bf048487ee718fe15d012b489f2d407b7:/services/api/app/controllers/static_controller.rb diff --git a/services/api/app/controllers/static_controller.rb b/services/api/app/controllers/static_controller.rb index 24756b93ca..4b2b985e02 100644 --- a/services/api/app/controllers/static_controller.rb +++ b/services/api/app/controllers/static_controller.rb @@ -12,8 +12,8 @@ class StaticController < ApplicationController def home respond_to do |f| f.html do - if !Rails.configuration.Services["Workbench1"]["ExternalURL"].empty? - redirect_to Rails.configuration.Services["Workbench1"]["ExternalURL"] + if !Rails.configuration.Services.Workbench1.ExternalURL.to_s.empty? + redirect_to Rails.configuration.Services.Workbench1.ExternalURL.to_s else render_not_found "Oops, this is an API endpoint. You probably want to point your browser to an Arvados Workbench site instead." end