From 4eb8d5a66cd20d0701c6ddc8dfb5c55e17069fdb Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 20 Mar 2025 18:18:16 -0600 Subject: refactor: use schema and host config --- bin/ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/ui b/bin/ui index 2bef8ee3..894f9a6e 100755 --- a/bin/ui +++ b/bin/ui @@ -120,7 +120,7 @@ module HTTPHelpers if location.start_with?("http") [302, { 'Location' => location }, []] else - [302, { 'Location' => "http://ui.example.com:8080#{location}" }, []] + [302, { 'Location' => "#{$scheme}://#{$host}#{location}" }, []] end end end -- cgit v1.2.3