Commit 4eb8d5a

mo khan <mo@mokhan.ca>
2025-03-21 00:18:16
refactor: use schema and host config
1 parent d9739b9
Changed files (1)
bin
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