From 15ab9bf3659c29046252b5face5dc32eb39e163d Mon Sep 17 00:00:00 2001
From: David Mendez <dmendez@ebi.ac.uk>
Date: Mon, 6 Dec 2021 12:21:36 +0000
Subject: [PATCH] Eubopen Targets: try to create super safe report card urls
 for ids with /

---
 pages/target/_id.vue     | 4 ++--
 web-components-submodule | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pages/target/_id.vue b/pages/target/_id.vue
index 14420a4..9433111 100644
--- a/pages/target/_id.vue
+++ b/pages/target/_id.vue
@@ -19,7 +19,7 @@ export default {
   async asyncData({ $axios, error, params, redirect }) {
     const entityID = EntityNames.EubopenTarget.entityID
     const receivedID = params.id
-    let itemID = receivedID
+    let itemID = receivedID.replace(/___/g, '/')
 
     const isChemblID = /^CHEMBL\d+$/.test(receivedID)
 
@@ -116,7 +116,7 @@ export default {
   },
   computed: {
     itemID() {
-      return this.$route.params.id
+      return this.$route.params.id.replace(/___/g, '/')
     },
   },
   methods: {
diff --git a/web-components-submodule b/web-components-submodule
index 7f8b2a8..ab34b03 160000
--- a/web-components-submodule
+++ b/web-components-submodule
@@ -1 +1 @@
-Subproject commit 7f8b2a8e194f574cd612146c2eeb9efbaf94e9b9
+Subproject commit ab34b0377880360cdefbe03a3725d8503be4d1ca
-- 
GitLab