diff --git a/website/client/components/chat/chatCard.vue b/website/client/components/chat/chatCard.vue index 636cb1e9a7..28b2f87a73 100644 --- a/website/client/components/chat/chatCard.vue +++ b/website/client/components/chat/chatCard.vue @@ -251,8 +251,8 @@ export default { const links = this.$refs.markdownContainer.getElementsByTagName('a'); for (let i = 0; i < links.length; i++) { const link = links[i]; - links[i].onclick = () => { - event.preventDefault(); + links[i].onclick = (ev) => { + ev.preventDefault(); this.$router.push({ path: link.getAttribute('href')}); }; }