diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-13 08:49:36 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-13 08:49:36 -0600 |
| commit | 0c50b105de6c0fc0c5a941af0adf59a40124ecb1 (patch) | |
| tree | 28a868e05b5bc47d8262c51a554aaf3fe53202e7 /bin/ui | |
| parent | 601de5a9af3532798aaf13969d9e509f63af64b6 (diff) | |
fix: append host to redirect location
Diffstat (limited to 'bin/ui')
| -rwxr-xr-x | bin/ui | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |
