Problem/Motivation

Outgoing private message notification emails contain placeholder markup in the thread URL, for example:
You have received a new private message. To read your message, follow this link: http://www.example.com/messages/view/38909

Steps to reproduce

In a Drupal 10 environment where privatemsg is enabled, user A sends a private message to user B. Inspect the email that is received by user B.

Expected: clean clickable URL that goes to the relevant message
Actual: http://www.example.com/messages/view/38909

Proposed resolution

Before: URL built manually; notification used hard-coded 'ru'.
After: Generate link via Url::fromRoute(...); use $member->getPreferredLangcode() for recipient language.
Why: Ensures correct route building (aliases/language) and sends notifications in the recipient's preferred language. No API changes.

Remaining tasks

None (on my side)

User interface changes

None

API changes

None

Data model changes

None

Issue fork privatemsg-3545738

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

neopoet created an issue. See original summary.

neopoet’s picture

Issue summary: View changes
Status: Active » Needs review
ivnish’s picture

Thanks for your contribution!

  • ivnish committed f26d5f53 on 2.0.x authored by neopoet
    [#3545738] feat: Privatemsg emails include placeholder markup in URL
    
    By...
ivnish’s picture

Assigned: neopoet » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.