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"