From aaae6ab5c344c3df0316c89874cf134f8301549c Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Mon, 13 Jun 2016 16:21:15 +0000 Subject: [PATCH] Changed query parameter when redirecting to the created dataset git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@129099 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../ckandatapublisherwidget/client/ui/AddResourceToDataset.java | 2 +- .../ckandatapublisherwidget/client/ui/CreateDatasetForm.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/AddResourceToDataset.java b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/AddResourceToDataset.java index f417812..b23cc1c 100644 --- a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/AddResourceToDataset.java +++ b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/AddResourceToDataset.java @@ -78,7 +78,7 @@ public class AddResourceToDataset extends Composite{ return; String finalPart = datasetUrl.substring(datasetIndex); - String finalPath = currentPath + "?" + Encoder.encode("q") + "=" + Encoder.encode(finalPart); + String finalPath = currentPath + "?" + Encoder.encode("goDataset") + "=" + Encoder.encode(finalPart); Window.Location.assign(finalPath); } }); diff --git a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/CreateDatasetForm.java b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/CreateDatasetForm.java index 8456548..b510039 100644 --- a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/CreateDatasetForm.java +++ b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/CreateDatasetForm.java @@ -561,7 +561,7 @@ public class CreateDatasetForm extends Composite{ return; String finalPart = datasetUrl.substring(datasetIndex); - String finalPath = currentPath + "?" + Encoder.encode("q") + "=" + Encoder.encode(finalPart); + String finalPath = currentPath + "?" + Encoder.encode("goDataset") + "=" + Encoder.encode(finalPart); Window.Location.assign(finalPath); } });