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

The format of #2 is

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