The Approval Notification email templates create 2 links at the bottom
of the email. These are defined in the default Provisioning
Notification email template.

1 - will take users to the Task Notification area
2 - will take users deep linked into that specific Approval Activity to
approve.

The format of #2 is
$PROTOCOL$://$HOST$:$PORT$/$TASK_DETAILS$

In my case $HOST$ is resolving to localhost and $PORT$ to 8543. I am
trying to find where those values are defined / configured so I can
correct them. $TASK_DETAILS$ looks correct.
Any help much appreciated
David