Open Bug 1866885 Opened 2 years ago Updated 1 year ago

SUMO notification e-mails always link to en-US page

Categories

(support.mozilla.org :: Localization, defect)

defect

Tracking

(Not tracked)

UNCONFIRMED

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.

Thanks for filing out this report, Mesko.

@Tasos Is there anything changed recently that may have an impact on this?

Flags: needinfo?(tasos)

This could be coming from the changes in the middleware. I am adding a needinfor for Ryan here.

Flags: needinfo?(tasos) → needinfo?(rjohnson)

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?

Flags: needinfo?(rjohnson)

Is this bug still valid?

It is indeed still valid. I would suggest what Ryan was asking, just leave out the locale from the URL, that works well.

You need to log in before you can comment on or make changes to this bug.