Closed kamilsk closed 6 years ago
fmt.Println(el.Request.AbsoluteURL("mailto:test@my.email"))
-> mailto:test@my.email
{Href: "mailto:test@my.email", Text: "test@my.email"}, // ErrorEvent{Error:&url.Error{URL:"mailto:test@my.email", Err:&http.badStringError{what:"unsupported protocol scheme", str:"mailto"}}}
{Href: "tel:+01234567", Text: "+01234567"}, // ErrorEvent{Error:&url.Error{URL:"tel:+01234567", Err:&http.badStringError{what:"unsupported protocol scheme", str:"tel"}}}
also try to ignore some invalid urls like
tel:XXX
and other target specific