Inconsistent behaviour with “Open all external links in a new tab” option

AI-generated summary

A user reports inconsistent behavior with the “Open all external links in a new tab” option, noting it fails in quoted text and edit history despite being enabled in interface settings jesus2099. Another user acknowledges the issue, attributing it to recent click tracking changes 4 david, and a developer confirms the fix has been implemented in a recent commit 7 pmusaraj.

Hello.

This issue has been brought a few times already and I see some PR code fix were also submitted.
Maybe it has worked some times since the fixes.

But at the moment I still have inconsistencies with this “Open all external links in a new tab” option:

As I have this option activated, I expect any external link will open in a new tab.
I don’t have to think that in this or that context I should make a special click to open in a new tab as my regular left click should open all of them in a new tab.

That is how a full time “Open all external links in a new tab” user expects the site to work.


Reproduce the bug

First check “Open all external links in a new tab” option in your interface settings and save.

Then:

3 Likes

Thanks for the report @jesus2099, it looks like this could be related to our recent click tracking changes. We will look into it

6 Likes

This should be fixed in FIX: Respect "open external links in new window" in quotes and edit h… · discourse/discourse@ca9fd95 · GitHub, thanks for the report.

3 Likes

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