Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
truedat101 opened this issue Feb 27, 2019 · 4 comments
Closed
Labels

Comments

@truedat101
Copy link

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?

@bep
Copy link
Member

bep commented Feb 27, 2019

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

@bep bep closed this as completed Feb 27, 2019
@truedat101
Copy link
Author

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.

@IvanTurgenev
Copy link

this should be global annoying

@github-actions
Copy link

github-actions bot commented Feb 2, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants