Issue #LOOP-95 by tj: Fixed url permission. Logout redirect