# CMD + 点击在新标签页打开 - 在引用帖子/主题信息框中无效

**URL:** <https://meta.discourse.org/t/cmd-click-to-open-in-new-tab-not-working-in-quoted-posts-topic-oneboxes/78798>\
**Category:** Bug\
**Created:** [2018年一月23日 20:31 UTC](https://meta.discourse.org/t/cmd-click-to-open-in-new-tab-not-working-in-quoted-posts-topic-oneboxes/78798 "2018-01-23T20:31:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bts](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bts/32/184556_2.png) [@bts](https://meta.discourse.org/u/bts)\
**Post date:** [2018年一月23日 20:31 UTC](https://meta.discourse.org/t/cmd-click-to-open-in-new-tab-not-working-in-quoted-posts-topic-oneboxes/78798/1 "2018-01-23T20:31:30Z")

</div>

I’m seeing non-standard behavior with using CMD + click to open links in a new tab, when said links are inside a quoted portion of a post, or a oneboxed link to another forum topic.

**What I expect to happen** : Clicking a link while holding down “command” opens the link in a new browser tab.

**What happens instead** : Link opens in same window (same behavior as normal click w/o “CMD”) so I’m taken away from the thread to the linked page.

Testing in both Chrome and Safari. This _does_ work as expected with external oneboxed links. Examples below…

CMD + click = opens in new tab:

> **[Where do i start with Crosspicking?](https://forum.troygrady.com/t/where-do-i-start-with-crosspicking/2027/39)**
>
> Like everything else… it just becomes a habit. Everybody changes in some manner for high-speed runs, but currently, my form changes a lot less than it used to. Like 99% of rock guitarists… my form used to completely change once I hit about 100...

CMD + click = opens in same tab:

> [@Is there any fake data to be used to test a plugin?](https://meta.discourse.org/t/is-there-any-fake-data-to-be-used-to-test-a-plugin/78784):
>
> Hi all actually it’s been on my head few times I am wondering is there any public dataset of Discourse site that can be used? similar like [FakerPress – WordPress plugin | WordPress.org](https://wordpress.org/plugins/fakerpress/) or [https://wordpress.org/plugins/wp-dummy-post-generator](https://wordpress.org/plugins/wp-dummy-post-generator) on wordpress so it’s like using real dataset when developing a plugin

---

<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:** [2018年一月23日 20:45 UTC](https://meta.discourse.org/t/cmd-click-to-open-in-new-tab-not-working-in-quoted-posts-topic-oneboxes/78798/2 "2018-01-23T20:45:56Z")

</div>

I tested on _Windows_ with Ctrl + click and all the links in your post opened in a new tab as expected. @HAWK, you have a Mac, right? What happens for you?

Edit: Tested in Chrome

---

<div class="post-metadata">

**Author:** ![notriddle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/notriddle/32/133055_2.png) [@notriddle](https://meta.discourse.org/u/notriddle)\
**Post date:** [2018年一月23日 20:49 UTC](https://meta.discourse.org/t/cmd-click-to-open-in-new-tab-not-working-in-quoted-posts-topic-oneboxes/78798/3 "2018-01-23T20:49:34Z")

</div>

Reproduced by ctrl-clicking the quote box’s link in Firefox on Windows. It opens in the same link (the bug manifests). Same with middle-clicking it.

---

<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:** [2018年一月23日 20:56 UTC](https://meta.discourse.org/t/cmd-click-to-open-in-new-tab-not-working-in-quoted-posts-topic-oneboxes/78798/4 "2018-01-23T20:56:34Z")

</div>

I cannot reproduce this in Firefox Quantum on Windows either.

---

<div class="post-metadata">

**Author:** ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)\
**Post date:** [2018年一月23日 20:56 UTC](https://meta.discourse.org/t/cmd-click-to-open-in-new-tab-not-working-in-quoted-posts-topic-oneboxes/78798/5 "2018-01-23T20:56:39Z")

</div>

On a Mac with Chrome, both open in a new tab and view is switched to the new tab. With Cmd+Click, they open in a new tab, but this tab remains the one in view.

In Safari, Click opens both in the same tab, while Cmd+Click opens the first one in a new tab without switching to it, and the second one opens in the same tab, as if no Cmd.

---

<div class="post-metadata">

**Author:** ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)\
**Post date:** [2018年一月23日 21:03 UTC](https://meta.discourse.org/t/cmd-click-to-open-in-new-tab-not-working-in-quoted-posts-topic-oneboxes/78798/6 "2018-01-23T21:03:17Z")

</div>

I can repro here. On macos with Safari, Chrome, and Firefox the links in first post all:

- CMD+click onebox link opens in background tab (as expected)
- CMD+click quoted link opens in same tab

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2018年一月24日 18:04 UTC](https://meta.discourse.org/t/cmd-click-to-open-in-new-tab-not-working-in-quoted-posts-topic-oneboxes/78798/7 "2018-01-24T18:04:50Z")

</div>

Probably the same error as reported here:

> [@Cannot middle-click or control-click on embedded topics to open in new tab](https://meta.discourse.org/t/cannot-middle-click-or-control-click-on-embedded-topics-to-open-in-new-tab/77711):
>
> This is happening to me in Firefox. If you middle-click or control-click on the title of a topic embedded in another, it doesn’t open in a new tab – instead, it replaces the current tab. It also seems to do a full load, rather than the normal AJAXy Discourse load. In this video, I’ve middle-clicked; control-clicking behaves the same way.

---

<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:** [2018年一月25日 00:34 UTC](https://meta.discourse.org/t/cmd-click-to-open-in-new-tab-not-working-in-quoted-posts-topic-oneboxes/78798/8 "2018-01-25T00:34:06Z")

</div>


