The discussion revolves around the behavior of external links for non-logged-in visitors in Discourse, specifically regarding the default_external_links_in_new_tab setting. arajvanshi notes that while the setting works for new users, it doesn’t affect non-logged-in visitors. mcwumbly explains that the setting was recently added and may not have been designed to affect anonymous users, as it only applies to current users. riking shares a PR to address this, acknowledging the behavior may have been intentional. Barnabas20 confirms non-logged-in users still can’t open external links in new tabs. sam asks about the status, and MarcP supports the idea, suggesting it’s useful for guests to open external links in new tabs. The issue is tagged as pr-welcome, indicating it’s open for contributions.
I selected the setting default_external_links_in_new_tab in the admin area. This resulted in the expected behaviour of setting default preference of all new users set to ‘open external links in new tab’.
However, for non-logged-in visitors, the behaviour is still the old one, it is opening the external links in the same tab leading visitors to go away from the website. When admin selects the default_external_links_in_new_tab setting, it should change the behaviour for non-logged-in visitors as well.
The ‘false’ behavior was from acting on an undefined value returned from Discourse.User.currentProp() when there is no current user, so it seemed to me to not be intentional one way or the other.
Ich denke, es wäre nützlich, wenn Anons/Gäste externe Links in neuen Tabs öffnen könnten. Sonst könnten wir hier Traffic verlieren, weil sie nach dem Klicken auf einen Link in einem Thema wieder abspringen.