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

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

ryanthompson  —  8 years ago

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

keevitaja  —  8 years ago

I use this:

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

ryanthompson  —  8 years ago

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