Error: invalidArgumentException: Cannot redirect to an empty URL.

Created on 6 June 2023, over 1 year ago
Updated 22 September 2023, over 1 year ago

Problem/Motivation

As an administrator I am attempting to reset a user's password by using the endpoint /user/{user}/reset_password_mail but the following error is generated: InvalidArgumentException: Cannot redirect to an empty URL. in Symfony\Component\HttpFoundation\RedirectResponse->setTargetUrl() (line 91 of /opt/drupal/vendor/symfony/http-foundation/RedirectResponse.php).

Steps to reproduce

Using Drupal 9.5.9

  • Go to /user/{user}/reset_password_mail
πŸ› Bug report
Status

Closed: works as designed

Version

8.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mwebaze

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

Comments & Activities

  • Issue created by @mwebaze
  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States glynster

    That is not how you resend the user password from the admin interface. Instead you would go to admin/people and use the contextual dropdown menu for the user as per the screenshot.

Production build 0.71.5 2024