The email received when a user registers contains an invalid URL format.
The email contents are below:
________________
Username: testuser
To set your password, visit the following address:
?action=rp&key=FVPWldB2TSBo3ao9Sy9H&login=testuser
https://www.test.com/login/
________________
For some reason the action appears before the login link.
Not sure where to look for this.