From 0c50b105de6c0fc0c5a941af0adf59a40124ecb1 Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 13 Mar 2025 08:49:36 -0600 Subject: fix: append host to redirect location --- bin/ui | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/ui b/bin/ui index 9f6f9ebf..04ad01a1 100755 --- a/bin/ui +++ b/bin/ui @@ -88,7 +88,11 @@ class UI end def redirect_to(location) - [302, { 'Location' => location }, []] + if location.start_with?("http") + [302, { 'Location' => location }, []] + else + [302, { 'Location' => "http://ui.example.com:8080#{location}" }, []] + end end def oauth_callback(request) -- cgit v1.2.3