Make WordPress Core

Opened 3 years ago

Last modified 9 months ago

#54299 new defect (bug)

Multisite: The link in the password retrieval email always points to the main-site

Reported by: henrywright's profile henry.wright Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Login and Registration Keywords: has-patch 2nd-opinion
Focuses: multisite Cc:


The link in the password retrieval email always points to the main-site. If the password reset was requested on a sub-site then the link in the email should point to that sub-site.

This is important because the main-site may be in a different language to the sub-site.

Attachments (1)

54299.diff (861 bytes) - added by henry.wright 3 years ago.

Download all attachments as: .zip

Change History (4)

3 years ago

#1 @henry.wright
3 years ago

  • Keywords has-patch added

Attached is 54299.diff. This patch fixes the link in the password retrieval email so that it doesn't always point to the main-site. If a password reset was requested from a sub-site then the link in the email will point to that sub-site.

#2 @henry.wright
3 years ago

  • Type changed from enhancement to defect (bug)

#3 @rajinsharwar
9 months ago

  • Keywords 2nd-opinion added

Not sure, but I guess this is the default behaviour. So, for example, if any user of Sub-site A tries to log in with the username, and password of Sub-site B, he is automatically redirected to Sub-site A. And when a password reset is initiated, the request gets processed through the Main site. The user is asked to reset the password also through the main site's domain link, and in the email too, the name of that main site is used. As the full process of resetting takes part on the main site, I guess this is expected to use the main site's name in the Email. After all, all the sites are under one network, and it doesn't seem to be an issue using the name of the main site in the Site name field in the email.

But, let's see what others in the community think about this.

Note: See TracTickets for help on using tickets.