15572: Many small doc tweaks as part of review.
[arvados.git] / apps / workbench / app / helpers / application_helper.rb
index 6352916b00b14560af0683aa9594b6daf7ce20ca..0a872446d594d42f8485316663b437cbfab0c3c8 100644 (file)
@@ -12,11 +12,11 @@ module ApplicationHelper
   end
 
   def current_api_host
-    Rails.configuration.arvados_v1_base.gsub(/https?:\/\/|\/arvados\/v1/, '')
+    "#{Rails.configuration.Services.Controller.ExternalURL.hostname}:#{Rails.configuration.Services.Controller.ExternalURL.port}"
   end
 
   def current_uuid_prefix
-    current_api_host[0..4]
+    Rails.configuration.ClusterID
   end
 
   def render_markup(markup)