about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-01-20 03:49:06 +0100
committerGitHub <noreply@github.com>2018-01-20 03:49:06 +0100
commit45afdf1781dcd8d9e51fe23fa210dc53bbc72f71 (patch)
treece170bdea5662fb759dfa691c0eefa234ac8912e
parent79b34a0fa2e993967f22892b857dcf601c07bd88 (diff)
Fix #6269 - Render LOCAL_DOMAIN as unicode in presentational views (#6305)
-rw-r--r--app/helpers/instance_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/instance_helper.rb b/app/helpers/instance_helper.rb
index 70027cca9..22a19c52b 100644
--- a/app/helpers/instance_helper.rb
+++ b/app/helpers/instance_helper.rb
@@ -6,6 +6,6 @@ module InstanceHelper
   end
 
   def site_hostname
-    Rails.configuration.x.local_domain
+    @site_hostname ||= Addressable::URI.parse("//#{Rails.configuration.x.local_domain}").display_uri.host
   end
 end