# Broken link for Settings in Email (Sub-directories website)

**URL:** https://meta.discourse.org/t/broken-link-for-settings-in-email-sub-directories-website/135184
**Category:** Bug
**Created:** [December 5, 2019, 4:53pm UTC](https://meta.discourse.org/t/broken-link-for-settings-in-email-sub-directories-website/135184 "2019-12-05T16:53:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mariane](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mariane/32/123197_2.png) [@Mariane](https://meta.discourse.org/u/Mariane)
#### Post date: [December 5, 2019, 4:53pm UTC](https://meta.discourse.org/t/broken-link-for-settings-in-email-sub-directories-website/135184/1 "2019-12-05T16:53:10Z")

</div>

Hi,  
We have noticed that members from our Forum receive emails with a broken link (except if they are already logged in their browser).

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/7/67f01b8baaa610828ee49d28694a107b0afe1a13.png)  
It leads to this: /en/login-preferences  
Instead of this: /community/forum/login-preferences

Seems like the link does not work with forums in sub-directories, as our website is [site.com/forum](http://site.com/forum) instead of [forum.site.com](http://forum.site.com). So there is an automatic redirection that happens when not logged in, and it does not lead to the appropriate path to actually adjust the preferences.

Can this be fixed?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [December 5, 2019, 9:39pm UTC](https://meta.discourse.org/t/broken-link-for-settings-in-email-sub-directories-website/135184/2 "2019-12-05T21:39:07Z")

</div>

Thanks for reporting that issue. While debugging I noticed an additional bug, so I fixed both of them.

[https://github.com/discourse/discourse/commit/86186de1e3c5d1bc21077ef8569970a64817437c](https://github.com/discourse/discourse/commit/86186de1e3c5d1bc21077ef8569970a64817437c)

[https://github.com/discourse/discourse/commit/00985559e4f52a6188795c6f71f64299bc9d53f9](https://github.com/discourse/discourse/commit/00985559e4f52a6188795c6f71f64299bc9d53f9)

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [December 5, 2019, 9:39pm UTC](https://meta.discourse.org/t/broken-link-for-settings-in-email-sub-directories-website/135184/3 "2019-12-05T21:39:17Z")

</div>


