SUMO notification e-mails always link to en-US page
Categories
(support.mozilla.org :: Localization, defect)
Tracking
(Not tracked)
People
(Reporter: meskobalazs, Unassigned)
References
Details
Steps to reproduce:
I am a contributor in SUMO, and I receive notification e-mails about answers to my posts. The mails contain a link to post an answer in the respective thread.
Actual results:
Notifications since at least 19 October always link to the en-US version of the site, so the URL starts with https://support.mozilla.org/en-US/questions/
Expected results:
Before this, the URL did not contain a specific language code (https://support.mozilla.org/questions/), so I got the page in my language. This was the case at least up to 11 October.
Comment 1•2 years ago
|
||
Thanks for filing out this report, Mesko.
@Tasos Is there anything changed recently that may have an impact on this?
Comment 2•2 years ago
|
||
This could be coming from the changes in the middleware. I am adding a needinfor for Ryan here.
Comment 3•2 years ago
|
||
This issue is due to our switch to Django's i18n system, specifically its reverse function, which we deployed on October 11, 2023. It's not a bug in Django's reverse function, which always adds the currently-activated locale to i18n-based URL's, but it is a change from our previous locale-free URL's within these email notifications. Should we return to our previous approach of using locale-free URL's?
Comment 4•2 years ago
|
||
Is this bug still valid?
Updated•1 year ago
|
| Reporter | ||
Comment 5•1 year ago
|
||
It is indeed still valid. I would suggest what Ryan was asking, just leave out the locale from the URL, that works well.
Description
•