From 6c2ec7b9c8cf1a0ba7a53e1c12974e16f4e5855e Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Thu, 17 Dec 2020 17:29:28 -0500 Subject: [PATCH] deployer sets wrong URL on external URL redirects (#2181) Fixes #350 --- deployer/src/deployer/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployer/src/deployer/upload.py b/deployer/src/deployer/upload.py index 68b2f91ae28e..ab7626e64018 100644 --- a/deployer/src/deployer/upload.py +++ b/deployer/src/deployer/upload.py @@ -274,7 +274,7 @@ def get_key(self, build_directory, file_path): def get_redirect_keys(self, from_url, to_url): return ( f"{self.key_prefix}{from_url.strip('/').lower()}", - f"/{to_url.strip('/')}", + f"/{to_url.strip('/')}" if to_url.startswith("/") else to_url, ) def get_bucket_objects(self):