From 9959c311a9d0f4aa6c71309564979caf38a037a8 Mon Sep 17 00:00:00 2001 From: Edijs Date: Mon, 11 Feb 2019 07:38:12 -0700 Subject: [PATCH 1/2] Fix clicking link - open new tab unless tag or mention --- src/components/status/status.js | 2 ++ 1 file changed, 2 insertions(+) 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 () { From f3d2e41a9b4908c38a6bcd72b8e1a97611270511 Mon Sep 17 00:00:00 2001 From: Edijs Date: Mon, 11 Feb 2019 07:45:22 -0700 Subject: [PATCH 2/2] Fix return --- src/components/status/status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') }