From 9959c311a9d0f4aa6c71309564979caf38a037a8 Mon Sep 17 00:00:00 2001 From: Edijs Date: Mon, 11 Feb 2019 07:38:12 -0700 Subject: Fix clicking link - open new tab unless tag or mention --- src/components/status/status.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/components/status/status.js b/src/components/status/status.js index 06e4fe93..50198928 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -299,7 +299,9 @@ const Status = { const link = this.generateTagLink(tag) this.$router.push(link) } + return } + window.open(target.href, '_blank') } }, toggleReplying () { -- cgit v1.2.3-70-g09d2 From f3d2e41a9b4908c38a6bcd72b8e1a97611270511 Mon Sep 17 00:00:00 2001 From: Edijs Date: Mon, 11 Feb 2019 07:45:22 -0700 Subject: Fix return --- src/components/status/status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/components/status/status.js b/src/components/status/status.js index 50198928..0273a5be 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -298,8 +298,8 @@ const Status = { if (tag) { const link = this.generateTagLink(tag) this.$router.push(link) + return } - return } window.open(target.href, '_blank') } -- cgit v1.2.3-70-g09d2