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

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

ryanthompson  —  7 years ago

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

keevitaja  —  7 years ago

I use this:

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

ryanthompson  —  7 years ago

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