Do a better job concatenating the accept-invitation link

This should fix problems with certain registration page/slug combinations.