The discussion addresses how to prevent links from displaying previews (oneboxes) on a Discourse forum. Beca_Lewis wants to share links without showing the site’s content, especially when users aren’t logged in. Jagster explains that using angle brackets < > around a URL prevents the preview. Canapin confirms that HTML links with target="_blank" can open in a new tab, though this may not work in all contexts. Loki suggests adding a space before the link to avoid previews, and Don recommends using the site setting blocked onebox domains to block previews for entire domains. The thread also notes that app-specific settings, like in the iOS DiscourseHub app, can control how links open.
Is there a way to put a link in a message or post and NOT have it show the page?
When I put a link to a page that is on my membership site, instead of displaying the link, it shows a message that the user is not logged in - which is confusing.
I’d like to post a link, but not have it show the website itself. And if it’s possible to make that link open into another tab that would be awesome too.
Your link has the target="_blank" attribute in your message and opens in a new tab when left clicking on it, so it works, unless I’m misunderstanding something?
On a side note, if I quote your message, it will transform your link as a standard markdown link and trim the target attribute, removing the new tab opening inside the quote.
edit: oh, you edited your message so mine does make little sense now. But still, a manual linkwith target="_blank" works, and it’s worth noting that there’s also a per-user setting for external links only:
No you aren’t. But open in the new tab didn’t work at the Hub and I was too lazy to check it on Safari. But when I did right click, aka. long press, from that open command opened to browser as expected. Apple has its own solutions everywhere
I added closing </a> but it was shortly after I published that answer (and I would like to put thinking emoji here but emojies aren’t here; strange).