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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

antiorario created an issue. See original summary.

antiorario’s picture

Issue summary: View changes
antiorario’s picture

Issue summary: View changes

  • antiorario committed 8b1e507 on 7.x-1.x
    Issue #2641148 by antiorario: Allow custom redirection after login
    
antiorario’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

antiorario’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Status: Closed (fixed) » Active

Reopening to port the feature to 8.x-1.x.

ptmkenny’s picture

Status: Active » Needs review
FileSize
1.79 KB

I needed this for my site, so here's my patch.

ptmkenny’s picture

FileSize
1.99 KB

New 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.

antiorario’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for this. I'll commit a slightly massaged version of the patch.

  • antiorario committed 4b3bd84 on 8.x-1.x authored by ptmkenny
    Issue #2641148 by ptmkenny, antiorario: Allow custom redirection after...
antiorario’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.