From 07e20e3d5fb2f444b434df4ee90ed530407d4496 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 2 Jun 2020 23:01:25 +0200 Subject: [PATCH] url --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(() => {