Commit c678756e authored by HJ's avatar HJ 🐼

Merge branch '748-hashtag-link-fixes' into 'develop'

StatusContent: Try to get hashtag from dataset first.

Closes #748

See merge request !1128
parents a6f73d7d d872d558
Pipeline #26791 passed with stages
in 10 minutes and 40 seconds
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment