Using uli with the second parameter fails with disable language out of the box

Created on 17 June 2020, over 4 years ago
Updated 24 January 2024, 11 months ago

When english is the default language, but disabled, you can not use drush uli

Since drush uli returns a url with a destination parameter, when disable_language redirects to the correct language in \Drupal\disable_language\EventSubscriber\DisabledLanguagesEventSubscriber::checkForDisabledLanguageAndRedirect (since user.reset.login is in the redirect_override_routes array in config), \Drupal\Core\EventSubscriber\RedirectResponseSubscriber::checkRedirectUrl takes over and redirects directly to the destination. This breaks the uli flow completely.

At the moment, the option is to not use the second argument for uli of course.

🐛 Bug report
Status

Active

Component

Code

Created by

🇧🇪Belgium daften

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇵🇱Poland sandboxpl Poland 🇵🇱

    Possible workaround for this is to add "/user/reset/*" to the list of excluded paths in disable language settings,
    the module's config can be also dynamically overriden via settings.php file with following line:

    $config['disable_language.settings']['exclude_request_path']['pages'] = '/user/reset/*';
    
Production build 0.71.5 2024