summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-03-20 18:18:16 -0600
committermo khan <mo@mokhan.ca>2025-03-20 18:18:16 -0600
commit4eb8d5a66cd20d0701c6ddc8dfb5c55e17069fdb (patch)
tree56ed0e5330fa4f1cbde17b7a63df5d543cccbab2 /bin
parentd9739b938655758c717364738434b26adb8382a1 (diff)
refactor: use schema and host config
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ui2
1 files changed, 1 insertions, 1 deletions
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