fix trailing slashes on login popup routes