A link was sent to an email setup for a test account for a friend request, the link took me to a 404

The link for a friend request from another member sent from my website to a test email used to set up an account with my website, once clicked led me to a 404-Page Not Found page. How do I write a link to go directly to the member page or to log-in page in order to view the person who sent the friend request?