From b29859510d1d35a3e7270fdadca5cdf65bcf79b9 Mon Sep 17 00:00:00 2001 From: alan-wu Date: Thu, 16 May 2024 15:20:53 +1200 Subject: [PATCH] Fix a small issue with tagging on gallery click --- src/components/SplitFlow.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/SplitFlow.vue b/src/components/SplitFlow.vue index 5a395b9a..0dba820e 100644 --- a/src/components/SplitFlow.vue +++ b/src/components/SplitFlow.vue @@ -198,7 +198,11 @@ export default { if (type) categoryValues.push(type); if (datasetId) categoryValues.push('(' + id + ')'); if (resource) { - filePath = typeof resource === 'string' ? resource : resource.share_link; + if (type === "Plot") { + filePath = resource.dataSource.url; + } else { + filePath = typeof resource === 'string' ? resource : resource.share_link; + } } // GA Tagging