Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

links dont open in new tab #603

Closed
birne27 opened this issue Apr 30, 2021 · 4 comments
Closed

links dont open in new tab #603

birne27 opened this issue Apr 30, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@birne27
Copy link

birne27 commented Apr 30, 2021

Hello Folks,

since the new Version 3.13.* all links posted by agents to an Omnichannel conversation dont open in a new tab.
There is no target="_blank" anymore inside the widget frame. Customers open up a clicked page inside the iframe, so its really inpractical now.

Is there any setting in the Administration Panel to fix this?

Best Regards

@billynoah
Copy link
Contributor

target="_parent" would be fine as well - better yet, a setting that allows admin to choose.

@ramonmolossi
Copy link

Probably the DomPurify is purging the "target" attribute.

The solution is to modify the MessageText/markdown.js:

export const renderMarkdown = (...args) => sanitize(md.render(...args), { ADD_ATTR: ['target','rel'] });

@billynoah
Copy link
Contributor

Thanks @ramonmolossi, created a PR for this: #610

@MartinSchoeler
Copy link
Contributor

Fixed by #610

@MartinSchoeler MartinSchoeler added the bug Something isn't working label Sep 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants