Skip to content
Snippets Groups Projects

StatusContent: Try to get hashtag from dataset first.

Merged lain requested to merge 748-hashtag-link-fixes into develop
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -176,8 +176,8 @@ const StatusContent = {
}
}
if (target.rel.match(/(?:^|\s)tag(?:$|\s)/) || target.className.match(/hashtag/)) {
// Extract tag name from link url
const tag = extractTagFromUrl(target.href)
// Extract tag name from dataset or link url
const tag = target.dataset.tag || extractTagFromUrl(target.href)
if (tag) {
const link = this.generateTagLink(tag)
this.$router.push(link)
Loading