FIX: PrettyText should return the valid slug.

This commit is contained in:
Guo Xiang Tan 2016-02-04 15:04:08 +08:00
parent 04ba3eb053
commit c99775ebdb
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}