URLs in notification emails coming out as "undefined"

```
Hi,

Rob Bob has added you to the group: "Red Foxes".

You may find it by following this link: https://undefined/group/g:oae:gypgLzrul
```

Discovered during today's bug bash