From 31bd0e776b62911a3863bc8c852c4935de7d40f3 Mon Sep 17 00:00:00 2001 From: ignifugo Date: Tue, 11 Jan 2022 19:36:13 +0100 Subject: [PATCH] bho, link url scheda singola --- software_export/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/software_export/js/main.js b/software_export/js/main.js index 329292e..296bc97 100644 --- a/software_export/js/main.js +++ b/software_export/js/main.js @@ -480,7 +480,9 @@ function scriviQuanti() { function url_mercato() { var url = window.location.href; var origin = window.location.origin; - url = url.replace(origin+'/schede_produzione/#', '') + url = url.replace(origin, ''); + url = url.replace('/schede_produzione/', ''); + url = url.replace('#', ''); console.log(url); $("#search").attr("value", url); $("#search").keyup();