# Open external links in new tab not working when link is within a quote block

**URL:** https://meta.discourse.org/t/open-external-links-in-new-tab-not-working-when-link-is-within-a-quote-block/68502
**Category:** Bug
**Created:** [21 augustus 2017 om 23:25 UTC](https://meta.discourse.org/t/open-external-links-in-new-tab-not-working-when-link-is-within-a-quote-block/68502 "2017-08-21T23:25:21Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [21 augustus 2017 om 23:25 UTC](https://meta.discourse.org/t/open-external-links-in-new-tab-not-working-when-link-is-within-a-quote-block/68502/1 "2017-08-21T23:25:21Z")

</div>

I’ve noticed for a while that links are not opening in new tabs. I thought it was my imagination. I’ve finally managed to replicate it.

I most recently noticed it here: [Set up Zulip notifications using the chat integration plugin](https://meta.discourse.org/t/set-up-zulip-notifications-using-the-discourse-chat-integration-plugin/68501)

And this quoted link opens in the same tab rather than a new one. I thought it might be some browser plugin, but I get the same behavior in an incognito window.

> [@](#):
>
> ⚠ This integration will not be functional until the [Discourse integration is added to Zulip’s codebase](https://github.com/zulip/zulip/pull/6201)

```plaintext

[quote]
:warning: This integration will not be functional until the [Discourse integration is added to Zulip's codebase](https://github.com/zulip/zulip/pull/6201)
[/quote]

```

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [22 augustus 2017 om 00:35 UTC](https://meta.discourse.org/t/open-external-links-in-new-tab-not-working-when-link-is-within-a-quote-block/68502/2 "2017-08-22T00:35:00Z")

</div>

Can we repro this @jomaxro?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [22 augustus 2017 om 00:36 UTC](https://meta.discourse.org/t/open-external-links-in-new-tab-not-working-when-link-is-within-a-quote-block/68502/3 "2017-08-22T00:36:37Z")

</div>

The Github link in the quote above is certainly not opening in a new tab for me. I’ll do more thorough testing tomorrow.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [22 augustus 2017 om 14:32 UTC](https://meta.discourse.org/t/open-external-links-in-new-tab-not-working-when-link-is-within-a-quote-block/68502/6 "2017-08-22T14:32:07Z")

</div>

@sam I can repro this - the quote block appears to be causing the issue. Links work fine when on their own, whether pasted as a raw line, or in the `[some text](a link)` format. However, when placed inside a `[quote][/quote] all external links fail to open in a new tab.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [22 augustus 2017 om 18:21 UTC](https://meta.discourse.org/t/open-external-links-in-new-tab-not-working-when-link-is-within-a-quote-block/68502/7 "2017-08-22T18:21:02Z")

</div>

I don’t know if it’s related or not, but I notice the link inside the above quote isn’t getting the link tracker count indicator.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [29 augustus 2017 om 20:27 UTC](https://meta.discourse.org/t/open-external-links-in-new-tab-not-working-when-link-is-within-a-quote-block/68502/9 "2017-08-29T20:27:08Z")

</div>

Here it doesn’t work in a solved inset (in OT):

[https://meta.discourse.org/t/configuring-instagram-login-for-discourse/51642?u=pfaffman](https://meta.discourse.org/t/configuring-instagram-login-for-discourse/51642)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [21 december 2017 om 02:01 UTC](https://meta.discourse.org/t/open-external-links-in-new-tab-not-working-when-link-is-within-a-quote-block/68502/11 "2017-12-21T02:01:06Z")

</div>

Wow I think this bug existed pretty much ever since we launched Discourse.

Fixed per:

[https://github.com/discourse/discourse/commit/2423b18839481c9dabf7b34b18146f79b68e3abf](https://github.com/discourse/discourse/commit/2423b18839481c9dabf7b34b18146f79b68e3abf)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [22 december 2017 om 07:00 UTC](https://meta.discourse.org/t/open-external-links-in-new-tab-not-working-when-link-is-within-a-quote-block/68502/12 "2017-12-22T07:00:02Z")

</div>

This topic was automatically closed after 28 hours. New replies are no longer allowed.
