From c99775ebdb6324459dcfc65d32bff475bec112b3 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 4 Feb 2016 15:04:08 +0800 Subject: [PATCH] FIX: PrettyText should return the valid slug. --- .../javascripts/discourse/dialects/category_hashtag_dialect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/dialects/category_hashtag_dialect.js b/app/assets/javascripts/discourse/dialects/category_hashtag_dialect.js index b0491091531..6aec1319d7d 100644 --- a/app/assets/javascripts/discourse/dialects/category_hashtag_dialect.js +++ b/app/assets/javascripts/discourse/dialects/category_hashtag_dialect.js @@ -15,7 +15,7 @@ Discourse.Dialect.inlineRegexp({ result = categoryHashtagLookup && categoryHashtagLookup(slug); if (result) { - return ['a', { class: attributeClass, href: result }, '#', ["span", {}, slug]]; + return ['a', { class: attributeClass, href: result[0] }, '#', ["span", {}, result[1]]]; } else { return ['span', { class: attributeClass }, hashtag]; }