asp.net - URL not working ASP MVC in SMS function -


i working on reset password function new link reset password going sent sms. when url link genereted , send mobile number not clickable reason. have checked around little , have seen android specific. suggestions?

var link = _urlprovider.toabsoluteurl(url.action("verifysmscode", "account", new { enteredcode = code }));          var body = string.format("verifiera ditt telefonnumer via följande länk: " +             environment.newline + " {0} ",             link);          _smsgateway.send(installation.name, body, buyer.msisdn.value);          viewbag.message = "ett sms med verifieringskod har skickats"; 

this code function. link generated correctly not clickable in android phones?

public string toabsoluteurl(string relative)     {         var request = system.web.httpcontext.current.request;         return string.format("{0}://{1}{2}{3}", (request.issecureconnection) ? "https" : "http",             request.url.host, (request.url.port == 80) ? "" : ":" + request.url.port.tostring(),             virtualpathutility.toabsolute(relative));     } 


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -