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");