CMD + click to open in new tab - not working in quoted posts / topic oneboxes

AI-generated summary

Users report a bug where CMD + click (or Ctrl + click on Windows) fails to open links in new tabs when those links are inside quoted posts or topic oneboxes on Discourse. While external oneboxed links work as expected, internal ones—especially quoted links—open in the same tab instead. Testing across Chrome, Safari, and Firefox on macOS and Windows shows inconsistent behavior: some users report background tab opening, others same-tab navigation, and some see no effect from CMD/Ctrl. bts first identified the issue, jomaxro and notriddle confirmed it on Windows, and omarfilip and schleifer reproduced it on macOS. techAPJ suggests this may be related to a previously reported issue regarding middle-click and control-click on embedded topics. The bug appears platform- and context-dependent, affecting user navigation experience when trying to preserve their current thread view.

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:

CMD + click = opens in same tab:

3 Likes

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

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.

I cannot reproduce this in Firefox Quantum on Windows either.

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.

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
6 Likes

Probably the same error as reported here:

5 Likes