diff --git a/index.html b/index.html
index 447dd99..3c788bd 100644
--- a/index.html
+++ b/index.html
@@ -135,7 +135,8 @@
function url_mercato() {
var url = window.location.href;
- url = url.replace("http://0.0.0.0:8000/#", "")
+ var origin = window.location.origin;
+ url = url.replace(origin+'/#', '');
//console.log(url);
$("#search").attr("value", url);
setTimeout(() => {