Skip to content

{reset_url} in reset password email can have repeated / #4793

@jHards

Description

@jHards

Description of the problem
When using a template to form the email for {exp:member:forgot_password_form}, {reset_url} can get a repeated / at the end of the {base_url} section.

How To Reproduce
{base_url} ends in /, {reset_url} in a template passed as the email_template variable of {exp:member:forgot_password_form}.

Error Messages

Screenshots / Videos / Template Code

Environment Details:

  • Version: 7.5.10
  • PHP Version 8.1.32

Possible Solution
Check for trailing / in {base_url} prior to forming {reset_url}.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions