If the standard Joomla login module is generating the same incorrect links, that will help narrow things down to being an issue with how Joomla is creating those URLs. We can give you pointers if that's the case, but need to come up with where the issue lies first.Could you try the Joomla's standard login module (mod_login) to see if it has the same issues?
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.