mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: PrettyText should return the valid slug.
This commit is contained in:
parent
04ba3eb053
commit
c99775ebdb
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue