Malformed url in Registration Email

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:


For some reason the action appears before the login link.

Not sure where to look for this.

Source link