Updates gophermap rendering to support gemini urls as h URL:... style links
This commit is contained in:
parent
7e4a32c67a
commit
5114ac1a15
|
@ -171,7 +171,7 @@ func buildLink(host, port, gtype, resource string) string {
|
|||
case "h":
|
||||
u, tf := isWebLink(resource)
|
||||
if tf {
|
||||
if len(u) > 4 && string(u[:4]) == "http" {
|
||||
if strings.Index(u, "://") > 0 {
|
||||
return u
|
||||
} else {
|
||||
return fmt.Sprintf("http://%s", u)
|
||||
|
|
Loading…
Reference in New Issue