« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/external-links.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/external-links.js')
-rw-r--r--src/external-links.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/external-links.js b/src/external-links.js
index 06570067..fa4a832e 100644
--- a/src/external-links.js
+++ b/src/external-links.js
@@ -701,7 +701,13 @@ export const externalLinkSpec = [
     match: {domain: 'youtube.com'},
 
     platform: 'youtube',
-    handle: {pathname: /^@([^/]+)\/?$/},
+
+    handle: {
+      pathname: /^@([^/]+)\/?$/,
+      transform: [
+        {command: 'decode-uri'},
+      ],
+    },
 
     icon: 'youtube',
   },