diff --git a/static/index.html b/static/index.html
index aa9c08b..5a271d2 100644
--- a/static/index.html
+++ b/static/index.html
@@ -354,7 +354,7 @@
}
function copyLink(id) {
- navigator.clipboard.writeText(`http://localhost:8000/image/${id}`).catch((err) => alert(`Couldn't copy: ${err}`));
+ navigator.clipboard.writeText(`${window.location.origin}/image/${id}`).catch((err) => alert(`Couldn't copy: ${err}`));
}
init();