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

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


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 instead of 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?

5 Likes

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/00985559e4f52a6188795c6f71f64299bc9d53f9

9 Likes