From cb7c78e4913bfa8ababbc41ab74a4c4e4ec55c51 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Thu, 2 May 2024 11:47:58 +0200 Subject: [PATCH] fixed code --- .../resolver/geoportal/exporter/Geoportal_HTML_Page.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/datatransfer/resolver/geoportal/exporter/Geoportal_HTML_Page.java b/src/main/java/org/gcube/datatransfer/resolver/geoportal/exporter/Geoportal_HTML_Page.java index bca482f..bdbc715 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/geoportal/exporter/Geoportal_HTML_Page.java +++ b/src/main/java/org/gcube/datatransfer/resolver/geoportal/exporter/Geoportal_HTML_Page.java @@ -63,7 +63,7 @@ public class Geoportal_HTML_Page { + " try {\n" + " console.log(\"json response \" + response_object);\n" + " if (response_object.state === \"OK\") {\n" - + " if (!(response_object.url === null || response_object.url === undefined)) {\n" + + " if (!(response_object.url === null) && !(response_object.url === undefined)) {\n" + " window.location.replace(response_object.url);\n" + " } else {\n" + " setTimeout(() => {\n"