From 28b7113d271a62bcf72ca31fd69f455178818cdd Mon Sep 17 00:00:00 2001 From: hexxa Date: Thu, 21 Jul 2022 20:03:41 +0800 Subject: [PATCH] fix(ui/panel_files): download url contains comma when port is 80/443 --- src/client/web/src/components/panel_files.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/web/src/components/panel_files.tsx b/src/client/web/src/components/panel_files.tsx index 44805f8..dac3741 100644 --- a/src/client/web/src/components/panel_files.tsx +++ b/src/client/web/src/components/panel_files.tsx @@ -576,7 +576,7 @@ export class FilesPanel extends React.Component { ); - const absDownloadURL = `${document.location.protocol}//${document.location.hostname}:${document.location.port}${downloadPath}`; + const absDownloadURL = `${document.location.protocol}//${document.location.host}${downloadPath}`; const pathTitle = this.props.msg.pkg.get("item.downloadURL"); const modTimeTitle = this.props.msg.pkg.get("item.modTime"); const sizeTitle = this.props.msg.pkg.get("item.size");