I installed the module on a fresh installation of Drupal Core 8.7.3., and added a Login Destination rule for each trigger. Only login and logout worked. Registration rule still redirects to the front page. One-time login link is still going to the default page.

Are there extra configuration I left off? Or there are bugs.

Registration and One-time login link are now working on D8.7.2 and D8.7.1 either.

I'd appreciate it if someone shares some proofs that is or is not the case.

Comments

Winstonchou created an issue. See original summary.

malte.koelle’s picture

I think the problem is, that on standard Drupal, the administrator has to approve a new customer after a registration. When I went to (admin/config/people/accounts) and changed the "Who can register account" to "Visitors" and uncheck "Require email verification when a visitor creates an account", the registration redirect worked for me.

Winstonchou’s picture

malte.koelle, thank you. It does work when configured that way. It actually has problem with both administrator approval and email verification. That is very limiting. I wonder if the developer/maintainer would fix this issue.

If I need to configure it to have both administrator approval and email verification, I use Rules module.

Thanks!

rsvelko’s picture

Hi, maintainer here!
Today I only have the time to tell you I've seen your posts and will try my best to look at them ASAP.

rsvelko’s picture

Assigned: Unassigned » rsvelko
Winstonchou’s picture

rsvelko, thank you very much for your response. We all appreciate it. Yes, it would be wonderful if I don't have to configure the Rules module to do the registration redirect, all done with this module having admin approval and email confirmation.

Thanks a lot!

chucksimply’s picture

Any update on this?

chucksimply’s picture

Priority: Major » Critical

Been 2 years... seems like this is a pretty major bug as it limits the suggested functionality of the module. Some maintainer feedback would be awesome. Thanks!

rsvelko’s picture

Hi,
I have no time to support and maintain the module any longer.
I've decided to put the module in 'seeking co-maintainers' state.
So any patches and new maintainers are welcome.

rajeshreeputra’s picture

interested in maintaining the module.

gaurav.kapoor’s picture

I checked the codebase and noticed that it has been specifically coded to not take any action if account verification or checking email on registration is enabled.

  // Save parameter to user entity, which will allow us understand that user
  // is just created. Do not need to save parameter, when needs verification
  // by administrator.
  $needs_verification = \Drupal::config('user.settings')->get('verify_mail');
  if ($needs_verification || !$entity->isActive()) {
    return;
  }
  $entity->user_is_new = TRUE;

Not sure what was the intention behind doing this and whether we should change it now so that users are redirected to configured page after registering on the website. As of now we should document that login after registration only works when user doesn't require checking email or admin approval.

gaurav.kapoor’s picture

We can take the discussion forward on this issue https://www.drupal.org/project/login_destination/issues/3131342 as it is in better state along with a working patch.