From 04140875a97454a37fdf0f9f3a0680caf0727d24 Mon Sep 17 00:00:00 2001 From: HaneenT Date: Mon, 2 Oct 2023 11:21:08 -0400 Subject: [PATCH] KPMP-4801: Fixed cut&run link from being cut off --- src/components/Home/AvailableDatasetsTable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Home/AvailableDatasetsTable.js b/src/components/Home/AvailableDatasetsTable.js index 8008e00b..fc725035 100644 --- a/src/components/Home/AvailableDatasetsTable.js +++ b/src/components/Home/AvailableDatasetsTable.js @@ -53,10 +53,10 @@ class AvailableDatasetsTable extends Component { handleDataTypeValueClick(row, controlAccess) { let linkType = row.linkInformation.linkType; - let linkValue = row.linkInformation.linkValue; + let linkValue = encodeURIComponent(row.linkInformation.linkValue); let mapping = `/repository/?size=n_20_n&filters[0][field]=access&filters[0][values][0]=${controlAccess}&filters[0][type]=any&filters[1][field]=${linkType}&filters[1][values][0]=${linkValue}&filters[1][type]=any`; if(linkType && linkValue){ - return encodeURI(mapping); + return encodeURI(mapping).replace('%2526', '%26'); } else { this.props.history.push('/oops'); throw new Error('Datatype not found', row.omicsType)