Anonymous subscriber does not have correct language stored

Created on 20 March 2024, about 1 year ago
Updated 22 March 2024, about 1 year ago

Problem/Motivation

Anonymous users accessing the site in a different language than default still get the default language newsletter.

Steps to reproduce

- Setup 2 languages
- Enable subscribe block
- Access the site in the second language, subscribe.
- Email should be in the second language (as expected). Follow link to confirm
- Confirmation page is also in the second language. CLick to confirm subscription.
- Create a newsletter in both languages and send.
- User gets the wrong language.

Investigating the DB table, I found out that the subscriber was stored with the default language, not the one used during subscription, which was described in README.txt

Proposed resolution

Remaining tasks

Investigate the reason.

User interface changes

Perhaps there could be a language selector in the subscription management form.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇨🇦Canada franz Montréal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @franz
  • 🇨🇦Canada franz Montréal

    Investigation update:

    - I manually changed the langcode in the database for the entries in simplenews_subscriber (all were default language) and simplenews_subscriber__subscriptions (all were 'und') but neither had an effect, all newsletter emails were delivered in default language.

Production build 0.71.5 2024