Bug - Formatted External Links in Preview Window

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.