After login user again redirects to login even if login is successfu
Created 3 years ago by lckamal

I tried adding {% set loginForm = form('login').redirect(url('/')).get() %} but after successful login it redirects back to /login

ryanthompson  —  3 years ago

Consistently? Sometimes this happens when you change code / don't reload.

keevitaja  —  3 years ago

I use this:

{% set login = form('login').redirect(request_get('redirect')).get() %}

ryanthompson  —  3 years ago

Should work just fine there assuming there's a redirect present? Are you still experiencing issues?