From ac7716a9036d4ecff8efb5bdb976c0619beb9a60 Mon Sep 17 00:00:00 2001 From: Miu Razvan Date: Wed, 25 Nov 2020 12:37:49 +0200 Subject: [PATCH] Query parameters in popup link and table link --- .../DiscodataOpenlayersMapBlock/View.jsx | 19 ++++++------------- .../Blocks/DiscodataTableBlock/View.jsx | 10 ++++++++-- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx b/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx index eac99a5f..cafc02a9 100644 --- a/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx +++ b/src/components/manage/Blocks/DiscodataOpenlayersMapBlock/View.jsx @@ -1327,21 +1327,14 @@ const OpenlayersMapView = (props) => {
- +
)} diff --git a/src/components/manage/Blocks/DiscodataTableBlock/View.jsx b/src/components/manage/Blocks/DiscodataTableBlock/View.jsx index 16849b9f..31a4a9f7 100644 --- a/src/components/manage/Blocks/DiscodataTableBlock/View.jsx +++ b/src/components/manage/Blocks/DiscodataTableBlock/View.jsx @@ -86,8 +86,14 @@ const components = { if (updatedSearch) props.setQueryParam({ queryParam: newSearch }); }} to={ - schemaMetadata.urlFieldId + '' - // (newSearch ? `?${qs.stringify(newSearch)}` : '') + schemaMetadata.urlFieldId + + (newSearch + ? `?${qs.stringify({ + siteInspireId: newSearch.siteInspireId, + siteName: newSearch.siteName, + siteReportingYear: newSearch.siteReportingYear, + })}` + : '') } > {schemaMetadata.title}