Merge pull request #1 from arvados/master
[arvados.git] / apps / workbench / app / helpers / application_helper.rb
index 0a872446d594d42f8485316663b437cbfab0c3c8..330d30976f93ff54cd6323c66a75b1c336e64ed7 100644 (file)
@@ -12,7 +12,11 @@ module ApplicationHelper
   end
 
   def current_api_host
-    "#{Rails.configuration.Services.Controller.ExternalURL.hostname}:#{Rails.configuration.Services.Controller.ExternalURL.port}"
+    if Rails.configuration.Services.Controller.ExternalURL.port == 443
+      "#{Rails.configuration.Services.Controller.ExternalURL.hostname}"
+    else
+      "#{Rails.configuration.Services.Controller.ExternalURL.hostname}:#{Rails.configuration.Services.Controller.ExternalURL.port}"
+    end
   end
 
   def current_uuid_prefix