FIX: PrettyText should return the valid slug.
This commit is contained in:
parent
04ba3eb053
commit
c99775ebdb
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue