# “Open all external links in a new tab” option does not work for protocol agnostic links

**URL:** https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224
**Category:** Bug
**Created:** [8 באפריל,‏ 2016,‏ 6:58am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224 "2016-04-08T06:58:00Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [8 באפריל,‏ 2016,‏ 6:58am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/1 "2016-04-08T06:58:00Z")

</div>

I have just noticed that in the [MusicBrainz’s community](https://community.metabrainz.org/t/do-i-have-to-hit-the-save-button-after-scanning-music-in-picard/20489/3?u=jesus2099) I am a member of (page source code says it’s [`Discourse 1.6.0.beta1`](https://github.com/discourse/discourse/commit/1481b3420ec1fa8514a9f37ec8947d91b9642731).  
I do have the setting “ **_Open all external links in a new tab_** ” set on my account (🌟).

When I go to [one of my posts where I have later added a link on](https://community.metabrainz.org/t/do-i-have-to-hit-the-save-button-after-scanning-music-in-picard/20489/3?u=jesus2099), clicking its links opens a new tab but clicking those same links in the History popup (the upper‐right **1 ✎** pencil icon), they will replace current window, not open a new tab.

(🌟) on a side‐note, it seems that I had to completely reload or logout/login for that setting to completely take effect, when I set it in the beginning.

Sorry if it has already been said, I have looked it up first with no match.

---

<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: [9 באפריל,‏ 2016,‏ 2:21am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/2 "2016-04-09T02:21:06Z")

</div>

Why do you need to open those links from the history view? The purpose of that view is comparing versions not opening links.

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [9 באפריל,‏ 2016,‏ 6:26am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/3 "2016-04-09T06:26:12Z")

</div>

Why not, I may ask. 🙂  
Comparing where links lead to or used to link to is also legitimate, IMO.  
I usually don’t like `href=_blank` but for some reason in Discourse, I need it.  
When you have set such an option, suddenly loosing your current page site by going external is not only inconsistent feeling but also disappointing. You have to hit the back button to shift click that link again. 🙂

---

<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: [9 באפריל,‏ 2016,‏ 6:38am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/4 "2016-04-09T06:38:34Z")

</div>

If this is that big of a problem, I guess the best solution would be to not show revision history or otherwise hidden content except to Moderators, or by Trust Level assuming more experienced members would know enough to right-click-open

But this is the first in two years time I’ve ever heard of it being a problem.

@jesus2099 how many members have complained to you about this?

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [9 באפריל,‏ 2016,‏ 6:44am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/5 "2016-04-09T06:44:36Z")

</div>

Maybe few people use that option.  
I really like the edit history I would not want it go away.  
But one thing I do not like at all is inconsistencies and uncertainty in the way a link will act.  
Having to remember this page is opening them in new tab but that page is not… Does not feel very nice.

I guess you are not using that setting: would you be happy if all of a sudden, some link opens in a new tab? 😉

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [9 באפריל,‏ 2016,‏ 6:47am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/6 "2016-04-09T06:47:23Z")

</div>

Off topic: can the topic remover PM me about why a valid bug report is being removed multiple times?  
It is valid I do see this bug on multiple machines.  
[https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work/42280](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work/42280) and I don’t have the link to the first one.

---

<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: [9 באפריל,‏ 2016,‏ 6:48am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/7 "2016-04-09T06:48:05Z")

</div>

I use it extremely often.

For comparison, _not_ clicking links.

And the rare occasion I may want to see what’s at the other end of the URL I copy - paste or right-click-open.

As for inconsistency, it could be argued that the act of looking at revision histories is an inconsistent forum use in its own right,

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [9 באפריל,‏ 2016,‏ 6:50am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/8 "2016-04-09T06:50:38Z")

</div>

I mean you might not use the open in new tab option.  
I prefer simple click than right click copy new tab paste, seriously.

You need to put yourself in the place of someone using the open in new tab option because otherwise you cannot feel how awkward this inconsistency is.  
I use the pencil icon as much as the reply button.

---

<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: [9 באפריל,‏ 2016,‏ 6:54am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/9 "2016-04-09T06:54:38Z")

</div>

As a matter of fact, my preference settings here and elsewhere _are_ open in new tab.

One or two clicks, or even more, copy - paste, whatever, its no matter to me.

If you feel strongly about this, why not submit a pull request?

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [9 באפריל,‏ 2016,‏ 6:57am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/10 "2016-04-09T06:57:46Z")

</div>

Look, I just submit a bug report, I do not know your code.  
Simple as that.

On a side not, open in new tab option still does not work for me at all here.  
It too several days to work on another discourse site.  
But that other bug report keep being erased, for some reason.

Thanks very much for your comprehension guys.

---

<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: [9 באפריל,‏ 2016,‏ 7:01am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/11 "2016-04-09T07:01:58Z")

</div>

That’s because clicking links in a revision history modal is _not_ a bug.

A bug by definition is something that is a problem with _normal_ use, and clicking links in revision history modals is _not_ normal use.

If on the other hand you mean links elsewhere, such as in posts, then there very well could be a bug.

---

<div class="post-metadata">

### Author: ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)
#### Post date: [9 באפריל,‏ 2016,‏ 7:04am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/12 "2016-04-09T07:04:23Z")

</div>

I have submitted the feature (pull) request. It’s not strictly align with your bug report but it aims to open some possibility for plugin authors.

[https://meta.discourse.org/t/allowing-click-tracker-to-follow-optional-parameters/42168](https://meta.discourse.org/t/allowing-click-tracker-to-follow-optional-parameters/42168)

Well, “open in a new tab” only works for links in the topic. I believe you can confirm that. In general, I think this option is meant to open external links as new tab in the topic. I am not sure though.

---

<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: [9 באפריל,‏ 2016,‏ 9:01am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/13 "2016-04-09T09:01:12Z")

</div>

> [@fantasticfears](#):
>
> Well, “open in a new tab” **only works for links in the topic**. I believe you can confirm that.

Correct it seems @jesus2099 does not understand this. Perhaps the copy could be clarified in the preferences page.

If you want some magical switch to flip so every single link on the internet opens in a new tab, this preference is not that – it only affects links in replies or the first post.

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [9 באפריל,‏ 2016,‏ 11:28am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/14 "2016-04-09T11:28:08Z")

</div>

> [@codinghorror](#):
>
> > [@fantasticfears](#):
> >
> > Well, “open in a new tab” **only works for links in the topic**. I believe you can confirm that.
> 
> Correct it seems @jesus2099 does not understand this. Perhaps the copy could be clarified in the preferences page.
> 
> If you want some magical switch to flip so every single link on the internet opens in a new tab, this preference is not that – it only affects links in replies or the first post.

I reported 2 bugs. For the history bug, I did not know history was not part of discourse.

For the other bug. I have checked this option more than a day ago and only now it works.  
It was not working for more than 24 hours, whatever my browser was, despite the checkbox checked and me logged in.  
It seems this bug report was misread as a duplicate of the first bug report.  
Can I now write down this second bug report without fearing it be deleted for the third time? 😛

---

<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: [9 באפריל,‏ 2016,‏ 11:55pm UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/15 "2016-04-09T23:55:48Z")

</div>

Reproduce it consistently on try on multiple browsers AND report it clearly without complaining about it being closed in the OP and fine.

---

<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: [10 באפריל,‏ 2016,‏ 12:48am UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/16 "2016-04-10T00:48:57Z")

</div>

No repro for me.

1. Went to [try.discourse.org](http://try.discourse.org)
2. Entered my user preferences
3. Checked “open links in new tab”
4. Navigated to homepage
5. Entered “Whoa. Check out this crazy paper artwork” topic
6. Clicked on the link in the last post titled “got linked 7 days ago”
7. Link opened in a new tab

I agree we can improve copy here a bit to specify that we’re only talking about **external links in posts** , not every link in the world.

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [10 באפריל,‏ 2016,‏ 3:57pm UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/17 "2016-04-10T15:57:56Z")

</div>

> [@sam](#):
>
> Reproduce it consistently on try on multiple browsers AND report it clearly without complaining about it being closed in the OP and fine.

My topics were not simply closed with notice. They were silently deleted. Twice.

As I think I said in those topics, but they are deleted now, I reproduced the case on two sites (MB’s discourse and meta discourse) and on two browsers for the same account each time (Opera 12 on Windows and Safari on iPad).

If the topics would not have been deleted silently I would have certainly be in a better mood here in this other topic.  
It is how it feels to loose your time spent on trying to help others’ work in vain.  
It would also have been easier to diagnose for you because now that, one or two days after, it eventually works, I am not going to test further for you.

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [10 באפריל,‏ 2016,‏ 4:01pm UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/18 "2016-04-10T16:01:08Z")

</div>

> [@codinghorror](#):
>
> No repro for me.
> 
> 1. Went to [try.discourse.org](http://try.discourse.org)
> 2. Entered my user preferences
> 3. Checked “open links in new tab”
> 4. Navigated to homepage
> 5. Entered “Whoa. Check out this crazy paper artwork” topic
> 6. Clicked on the link in the last post titled “got linked 7 days ago”
> 7. Link opened in a new tab
> 
> I agree we can improve copy here a bit to specify that we’re only talking about **external links in posts** , not every link in the world.

I’m happy for you that you did not trigger the bug (a cache bug or whatever) but it would make more sense that all external links **within the current discourse site** (has nothing to do with _in the world_) would share the current external link opening preference that you are setting in a given discourse website.  
But I think I understand now that the history is not part of discourse but a third party plugin, which may explain nothing could be done about it.

---

<div class="post-metadata">

### Author: ![TechnoBear](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/technobear/32/40546_2.png) [@TechnoBear](https://meta.discourse.org/u/TechnoBear)
#### Post date: [11 באפריל,‏ 2016,‏ 12:03pm UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/19 "2016-04-11T12:03:49Z")

</div>

> [@jesus2099](#):
>
> On a side not, open in new tab option still does not work for me at all here.

Are you using a mouse or keyboard? Because using keyboard activation for links doesn’t respect the “open in new tab” setting.

Reported here:

> [@"Open all external links in a new tab" not honoured by keyboard activation](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-not-honoured-by-keyboard-activation/32429):
>
> Steps to repro: Check “Open all external links in a new tab” in preferences. Open an external link using a mouse - it opens in a new tab as expected. Open an external link using the keyboard. It opens in the current tab. e.g. External link to SitePoint in this post: Tested on Firefox 40 & Chromium Version 44.0.2403.89 Ubuntu 15.04 (64-bit), both on Ubuntu Gnome 15.04.

(And for some reason, the link to the MusicBrainz community in the first post of this topic does not open in a new tab, whether I activate it from keyboard or by mouse.)

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [11 באפריל,‏ 2016,‏ 1:30pm UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/20 "2016-04-11T13:30:52Z")

</div>

I was using the mouse.

> [@TechnoBear](#):
>
> (And for some reason, the link to the MusicBrainz community in the first post of this topic does not open in a new tab, whether I activate it from keyboard or by mouse.)

Thanks very much @TechnoBear! 🙇‍♂️  
See ? It’s this same post that I was using to know when it will work.  
Neither github nor MusicBrainz external links do work indeed from that post.

> [@“Open all external links in a new tab” option does not work for protocol agnostic links](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-links-in-history-popup/42224):
>
> I have just noticed that in the [MusicBrainz’s community](https://community.metabrainz.org/t/do-i-have-to-hit-the-save-button-after-scanning-music-in-picard/20489/3?u=jesus2099) I am a member of (page source code says it’s [Discourse 1.6.0.beta1](https://github.com/discourse/discourse/commit/1481b3420ec1fa8514a9f37ec8947d91b9642731). I do have the setting “Open all external links in a new tab” set on my account (star2). When I go to [one of my posts where I have later added a link on](https://community.metabrainz.org/t/do-i-have-to-hit-the-save-button-after-scanning-music-in-picard/20489/3?u=jesus2099), clicking its links opens a new tab but clicking those same links in the History popup (the upper‐right 1 ✎ pencil icon), they will replace current window, not open a new tab. (star2) on a side‐note, it seems that I h…

※ Unfortunately, we are discussing over a disappeared topic, it’s off‐topic in this topic here.  
But I’m not the one who will create the right topic a third time.

[Next page](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224.md?page=2)
