From f79b8171028f8ec71582822cb8abe080fd11ab2e Mon Sep 17 00:00:00 2001 From: clr-li <111320104+clr-li@users.noreply.github.com> Date: Thu, 29 Feb 2024 22:16:43 -0800 Subject: [PATCH 1/3] Removed #t text --- gooey_ui/components/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gooey_ui/components/__init__.py b/gooey_ui/components/__init__.py index 5cd8d9721..15a5d496c 100644 --- a/gooey_ui/components/__init__.py +++ b/gooey_ui/components/__init__.py @@ -443,6 +443,7 @@ def download_button( disabled: bool = False, **props, ) -> bool: + url = url[:-8] return button( component="download-button", url=url, From 3b1a5b05b4e93692042c15126da499f29a57daf0 Mon Sep 17 00:00:00 2001 From: clr-li <111320104+clr-li@users.noreply.github.com> Date: Thu, 29 Feb 2024 22:40:11 -0800 Subject: [PATCH 2/3] Better fix --- gooey_ui/components/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gooey_ui/components/__init__.py b/gooey_ui/components/__init__.py index 15a5d496c..cc24e9ad2 100644 --- a/gooey_ui/components/__init__.py +++ b/gooey_ui/components/__init__.py @@ -443,7 +443,7 @@ def download_button( disabled: bool = False, **props, ) -> bool: - url = url[:-8] + url = url.split("#t=0.001")[0] return button( component="download-button", url=url, From c5aee2a8c6d5234103f90de1592e564181960213 Mon Sep 17 00:00:00 2001 From: clr-li <111320104+clr-li@users.noreply.github.com> Date: Thu, 29 Feb 2024 23:31:11 -0800 Subject: [PATCH 3/3] Remove fragment --- gooey_ui/components/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gooey_ui/components/__init__.py b/gooey_ui/components/__init__.py index cc24e9ad2..50b745563 100644 --- a/gooey_ui/components/__init__.py +++ b/gooey_ui/components/__init__.py @@ -443,7 +443,7 @@ def download_button( disabled: bool = False, **props, ) -> bool: - url = url.split("#t=0.001")[0] + url = furl(url).remove(fragment=True).url return button( component="download-button", url=url,