Hugo: Can't render a mobile friendly tel: number used in url in config.toml

Created on 27 Feb 2019  路  3Comments  路  Source: gohugoio/hugo

I am attempting to link a mobile friendly phone number following the standard:

tel:+somenumber
or tel://somenumber

In my config.toml, I have:

    [[languages.en.menu.secondary]]
    identifier = "talktous"
    name = "Talk To Us"
    url = "tel:+14151112222"
    weight = 120

Oddly, this renders as:

http://localhost:1313/embeddedsystems/#ZgotmplZ

(note: the ZgotmplZ)

I'm sure I'm rending some template thing the wrong way, but mailto: just works fine, so I though tel: would work. Ideas?

Most helpful comment

So not a bug, but a feature of safeURL. Not obvious, but it is stated that anything not matching http/https/mailto urls will get the funny ZgotmplZ URL.

Here is a reference: https://gohugo.io/functions/safeurl/#prose

Glad this is here because it should now show up in search results.

All 3 comments

Please use https://discourse.gohugo.io/ for questions/troubleshooting. Also see Hugo Documentation.

So not a bug, but a feature of safeURL. Not obvious, but it is stated that anything not matching http/https/mailto urls will get the funny ZgotmplZ URL.

Here is a reference: https://gohugo.io/functions/safeurl/#prose

Glad this is here because it should now show up in search results.

this should be global annoying

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrissparksnj picture chrissparksnj  路  3Comments

ianbrandt picture ianbrandt  路  3Comments

MunifTanjim picture MunifTanjim  路  3Comments

digitalcraftsman picture digitalcraftsman  路  3Comments

artelse picture artelse  路  3Comments