diff --git a/src/views/bouquets/BouquetEditView.vue b/src/views/bouquets/BouquetEditView.vue index 52bbfa812..c60e0dbac 100644 --- a/src/views/bouquets/BouquetEditView.vue +++ b/src/views/bouquets/BouquetEditView.vue @@ -108,6 +108,11 @@ const availabilityEnum = { URL_AVAILABLE: 'url available' } +const goToDatasetPage = (id) => { + const url = config.website.menu_items.find((link) => link.linkPage === '/datasets') + return `${url.linkPage}/${id}` +} + const addDatasetsPropertiesToExtras = async () => { const setUri = urlData.value ? urlData.value : null if (title.value && description.value) { @@ -122,7 +127,7 @@ const addDatasetsPropertiesToExtras = async () => { datasetsProperties.value[datasetsPropertiesKey].push({ title: title.value, description: description.value, - uri: dataset.page, + uri: goToDatasetPage(selectedDataset.value.id), id: selectedDataset.value.id, available: availabilityEnum.ECO_AVAILABLE }) @@ -424,8 +429,6 @@ onMounted(() => {
- {{ availabilityEnum.ECO_AVAILABLE }} -- - {{ availabilityEnum.URL_AVAILABLE }} { > @@ -645,6 +649,7 @@ onMounted(() => { > @@ -697,7 +702,6 @@ onMounted(() => {