From 4dcb5992337a5dc685f23f2075c03dad8ae486b2 Mon Sep 17 00:00:00 2001 From: rinsuki <428rinsuki+git@gmail.com> Date: Thu, 17 May 2018 08:14:30 +0900 Subject: [PATCH] fix #1428 --- src/text/html.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/text/html.ts b/src/text/html.ts index f33ef4997..40f86e4b2 100644 --- a/src/text/html.ts +++ b/src/text/html.ts @@ -1,5 +1,6 @@ import { lib as emojilib } from 'emojilib'; import { JSDOM } from 'jsdom'; +import config from '../config'; const handlers = { bold({ document }, { bold }) { @@ -43,7 +44,7 @@ const handlers = { mention({ document }, { content }) { const a = document.createElement('a'); - a.href = '/' + content; + a.href = `${config.url}/${content}`; a.textContent = content; document.body.appendChild(a); },