How can I redirect a member to account page on first visit with a cookie set? My redirect is looping now.
{% if currentUser %}
{% set name = currentUser.firstName %}
{% do craft.lj_cookies.set('account', name) %}
{% set redirect = craft.lj_cookies.get('account') %}
{% if redirect == name %}
{% redirect name %}
{% endif %}
{% endif %}
It's not possible to visit any other URL anymore.