Quantcast
Channel: Forum
Viewing all articles
Browse latest Browse all 3613

Rendering Episerver.Url with mailto, results in garbage characters

$
0
0

Pretty straightforward, I ripped off the Alloy MVC demo and either one of these

@Html.UrlLink(new EPiServer.Url("mailto:adress@host.se"))
<a href="@Url.ContentUrl(new EPiServer.Url("mailto:adress@host.se"))">Send email</a>

Renders an anchor tag with href="mailto::25//adress@host.se:25". If I try anything other than mailto, for instance

@Html.UrlLink(new EPiServer.Url("mailltoo:adress@host.se"))

Then it renders correctly. Sadly my browser does not understand what "mailltoo" means. Email adresses in EPiServer.SpecializedProperties.LinkItems work fine, but all I have is this Url. How do I wrangle a clean href string out of it, regardless of what the target might be?


Viewing all articles
Browse latest Browse all 3613

Latest Images

Trending Articles



Latest Images