include optional pathname in login link param