Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

E-mail links in XhtmlString properties inserts to TinyMCE with mailto-value but then replaced with link to start page

$
0
0

We've been troubleshooting a really odd thing around "mailto:"-links.

Looks like it triggers with some combination of host names where the root domain (or name used after the @ in e-mails) is one of the names.

To verify, create new Alloy (I get 12.23)

Start and add a host name in Settings => Manage Websites => Edit Website => Host Names, use:
test.se Redirected (permanent)

Go to a XhtmlString property in Edit Mode and add a link, select E-mail and add somename@test.se

At this time if you inspect value using View Source in TinyMCE or browser tools you can see that the value is: href="mailto:somename@test.se"

Publish and the href value gets changed to href="/EPiServer/CMS/Content/en/,,5/?epieditmode=false" - the start page... And in the template link gets rewritten to https://localhost:5000/en/

Something goes wrong and "mailto:" is somehow ignored and startpage gets picked up instead.

Adding a support case but also posts here in case someone is faster and for visibility...


Viewing all articles
Browse latest Browse all 9076