Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Passwordless automatically redirects to 'user' after a successful login, which means it won't work with any modules providing custom landing pages, or redirection after login (such as Login Redirect).
The upcoming commit introduces a hook, hook_passwordless_login_redirect_alter()
, which will allow any module to customize the landing page. The assumption is that only one enabled module will implement this hook. If more than one module implements it, the heaviest one will win.
Comment | File | Size | Author |
---|---|---|---|
#9 | 2641148-9_add_redirect_hook.patch | 1.99 KB | ptmkenny |
Comments
Comment #2
antiorario CreditAttribution: antiorario commentedComment #3
antiorario CreditAttribution: antiorario commentedComment #5
antiorario CreditAttribution: antiorario commentedComment #7
antiorario CreditAttribution: antiorario commentedReopening to port the feature to 8.x-1.x.
Comment #8
ptmkenny CreditAttribution: ptmkenny commentedI needed this for my site, so here's my patch.
Comment #9
ptmkenny CreditAttribution: ptmkenny commentedNew patch that allows the user to optionally set route parameters in addition to the route name. This is necessary so that you can redirect to node/5/edit and so forth.
Comment #10
antiorario CreditAttribution: antiorario commentedThanks for this. I'll commit a slightly massaged version of the patch.
Comment #12
antiorario CreditAttribution: antiorario commented