Bug - Opmaakte externe links in voorbeeldvenster

AI-generated summary

Users are discussing a bug where formatted external links (e.g., bold or italicized) in the preview window behave inconsistently. lucaviness reports that such links are clickable in preview but do not open in a new tab, despite having “Open all external links in a new tab” enabled. JimPas contradicts this, stating that on their site, formatted links in preview both click and open in a new tab as expected — and that unformatted links are not clickable in preview. lucaviness confirms the issue persists on their site and plans to test using the hyperlink icon method suggested by JimPas. neounix tested the same steps and found the behavior working correctly in Discourse v2.6.0.beta2, including proper new-tab behavior for formatted links in preview, accompanied by a screenshot. The inconsistency appears to be environment- or version-specific, and further testing is underway to isolate the cause.

I came across this bug just a minute ago (desktop). When in the editing window, if you italicize or bold a bracketed link, it will a) be clickable in the preview window and b) will not open a new tab.

If the link is not formatted, it will not be clickable.


Steps to Reproduce

  1. Go to your forum preferences > interface > other. Make sure “Open all external links in a new tab” is checked.

  2. Open the editing window (reply, PM, topic, etc)

  3. Type:

[**test**](https://en.m.wikipedia.org/wiki/Discourse)

  1. Click on the outcome in the preview window

Hope this helps!

3 likes

Just tested this on my site.
When formatted the link in the preview pane is both
a) clickable in the preview window; and
b) does open in a new tab.

If the link is not formatted the link is not clickable in the preview window as you state. :slightly_smiling_face:

Once the reply is saved, it is clickable and does open in a new tab.
Normally I’ll just use the hyperlink icon in the reply to add a link and text and so far as I remember, they’ve always been clickable and open in a new tab from the preview pane. I usually format the text/hyperlink after creating it.

I have my personal preference set to open all external links in a new tab.

1 like

Thanks for your input! Very odd, since I have open all external links in a new tab on. It does not open a new tab on my primary site and this forum.

I’ll test your method of using the link icon and let you know how that goes.

Thanks again!

1 like

Hi @lucaviness

Just tested as you described and it worked correctly as expected:

Discourse version: 2.6.0.beta2

2 likes

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.