Skip to content
Snippets Groups Projects
Commit 15ab9bf3 authored by David Mendez's avatar David Mendez
Browse files

Eubopen Targets: try to create super safe report card urls for ids with /

parent c9304d9a
No related branches found
No related tags found
1 merge request!68Eubopen Targets: try to create super safe report card urls for ids with /
...@@ -19,7 +19,7 @@ export default { ...@@ -19,7 +19,7 @@ export default {
async asyncData({ $axios, error, params, redirect }) { async asyncData({ $axios, error, params, redirect }) {
const entityID = EntityNames.EubopenTarget.entityID const entityID = EntityNames.EubopenTarget.entityID
const receivedID = params.id const receivedID = params.id
let itemID = receivedID let itemID = receivedID.replace(/___/g, '/')
const isChemblID = /^CHEMBL\d+$/.test(receivedID) const isChemblID = /^CHEMBL\d+$/.test(receivedID)
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
}, },
computed: { computed: {
itemID() { itemID() {
return this.$route.params.id return this.$route.params.id.replace(/___/g, '/')
}, },
}, },
methods: { methods: {
......
Subproject commit 7f8b2a8e194f574cd612146c2eeb9efbaf94e9b9 Subproject commit ab34b0377880360cdefbe03a3725d8503be4d1ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment