From aecc59cdc882ae9398176fdbe8f9a59331a51392 Mon Sep 17 00:00:00 2001
From: FloatingGhost <hannah@coffee-and-dreams.uk>
Date: Fri, 28 Jan 2022 18:45:21 +0000
Subject: [PATCH] fix hrefs

---
 src/components/rich_content/rich_content.jsx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx
index c0d20c5e..6a236093 100644
--- a/src/components/rich_content/rich_content.jsx
+++ b/src/components/rich_content/rich_content.jsx
@@ -171,6 +171,12 @@ export default Vue.component('RichContent', {
               return renderMention(attrs, children)
             } else {
               currentMentions = null
+              if (attrs['href']) {
+                attrs['href'] = attrs['href'].replace(/&amp;/g, '&')
+                return <a {...{ attrs }}>
+                  { children }
+                </a>
+              }
               break
             }
           case 'span':