# “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:** [Avril 8, 2016, 6:58 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:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [Avril 11, 2016, 1:37 UTC](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224/21 "2016-04-11T13:37:16Z")

</div>

> [@jesus2099](#):
>
> 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.

This is easy to reproduce now.

[http://try.discourse.org/t/open-links-in-external-window-test/344](http://try.discourse.org/t/open-links-in-external-window-test/344)

It is because the first two links are using protocol agnostic URLs, they do not start with http: or https: and instead start with //

[try.discourse.org](http://try.discourse.org) is temporary, so here is the code to reproduce the issue

```plaintext
[MusicBrainz's community](//community.metabrainz.org/t/do-i-have-to-hit-the-save-button-after-scanning-music-in-picard/20489/3?u=jesus2099) - won't open in new window.

[Discourse 1.6.0.beta1](//github.com/discourse/discourse/commit/1481b3420ec1fa8514a9f37ec8947d91b9642731) - won't open in a new window

------------------------

[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) - will open in new window.

[Discourse 1.6.0.beta1](https://github.com/discourse/discourse/commit/1481b3420ec1fa8514a9f37ec8947d91b9642731) - will open in a new window

```

---

_[View the full topic](https://meta.discourse.org/t/open-all-external-links-in-a-new-tab-option-does-not-work-for-protocol-agnostic-links/42224)._
