loginWithRedirect doesn't work with target URL

Did you figure out what to do? I am facing the same issue.