# Mailto: resets to baseURL

**URL:** https://discourse.gohugo.io/t/mailto-resets-to-baseurl/25716
**Category:** support
**Created:** [May 21, 2020, 2:36pm UTC](https://discourse.gohugo.io/t/mailto-resets-to-baseurl/25716 "2020-05-21T14:36:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![stockphrase](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stockphrase/32/11244_2.png) [@stockphrase](https://discourse.gohugo.io/u/stockphrase)
#### Post date: [May 21, 2020, 2:36pm UTC](https://discourse.gohugo.io/t/mailto-resets-to-baseurl/25716/1 "2020-05-21T14:36:58Z")

</div>

I’ve read that mailto: is considered safe by Hugo, but when I try to include my email with `[Email](mailto:my@email.com)` the result is that the generated .html just links to the baseURL of my site.

What am I missing here?

---

<div class="post-metadata">

### Author: ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)
#### Post date: [May 21, 2020, 3:30pm UTC](https://discourse.gohugo.io/t/mailto-resets-to-baseurl/25716/2 "2020-05-21T15:30:54Z")

</div>

I am unable to reproduce this behavior. This markdown:

```auto
[Email](mailto:my@email.com)

```

Produces this HTML:

```auto
<a href="mailto:my@email.com">Email</a>

```

Please provide a link to the source code repository for your project.  
See [Requesting Help](https://discourse.gohugo.io/t/requesting-help/9132).

---

<div class="post-metadata">

### Author: ![stockphrase](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stockphrase/32/11244_2.png) [@stockphrase](https://discourse.gohugo.io/u/stockphrase)
#### Post date: [May 21, 2020, 5:05pm UTC](https://discourse.gohugo.io/t/mailto-resets-to-baseurl/25716/3 "2020-05-21T17:05:27Z")

</div>

The page in question is here:

- [https://site.comabout-me/contact/](https://site.comabout-me/contact/)

The code for this page

```
# Contact

If you find errors or would like to collaborate, please reach out to me:

- {{< fa globe >}} [Web](https://site.org)

- {{< fa envelope >}} [Email](mailto:email@server.com)

- {{< fa key >}} [PGP](/pgp/key.asc)

{{< fa fingerprint >}} PGP Fingerprint:

```

Is this theme (Hugo Book) preventing this for some reason? Same code works in other Hugo sites.

---

<div class="post-metadata">

### Author: ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)
#### Post date: [May 21, 2020, 5:13pm UTC](https://discourse.gohugo.io/t/mailto-resets-to-baseurl/25716/4 "2020-05-21T17:13:22Z")

</div>

> [@stockphrase](#):
>
> Is this theme (Hugo Book) preventing this for some reason?

That’s a question for the theme developer. Log an issue here:  
[https://github.com/alex-shpak/hugo-book/issues](https://github.com/alex-shpak/hugo-book/issues)

The theme overrides default link rendering via `layouts/_default/_markup/render-link.html`. That’s the first place I’d look for a problem.

---

<div class="post-metadata">

### Author: ![stockphrase](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stockphrase/32/11244_2.png) [@stockphrase](https://discourse.gohugo.io/u/stockphrase)
#### Post date: [May 21, 2020, 5:22pm UTC](https://discourse.gohugo.io/t/mailto-resets-to-baseurl/25716/5 "2020-05-21T17:22:11Z")

</div>

Thanks. This was a good tip. Was related to an experimental portable links setting. Works great now.

---

<div class="post-metadata">

### Author: ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)
#### Post date: [May 23, 2020, 5:35pm UTC](https://discourse.gohugo.io/t/mailto-resets-to-baseurl/25716/6 "2020-05-23T17:35:35Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
