In contact.module, there is the following code:

  // Users may not contact themselves.
  if ($user->uid == $account->uid) {
    return FALSE;
  }

which seems sensible enough, but, further down the code under function contact_user there is this entry for a user's personal contact form:
'#description' => t('Allow other users to contact you by e-mail via <a href="@url">your personal contact form</a>. ...snip....', array('@url' => url("user/$user->uid/contact"))),
which then creates a perma-dead link since the user/@user->uid/contact can't resolve for the current user.

Am I missing something (quite possible...) or, how can this be fixed?
Thanks
Steve

Comments

steveray’s picture

Title: Documentation problem with contact.module » Dead link generation with contact.module?

Sorry, title was incorrect.

Dave Reid’s picture

Status: Active » Closed (duplicate)