diff --git a/src/components/Home/AvailableDatasetsTable.js b/src/components/Home/AvailableDatasetsTable.js index 8008e00b..35346d50 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 = row.linkInformation.linkValue.replace('&', '%26'); 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)