Adding port to api link url generation. #366.
It looks like we'd previously cleaned up the HTTPS issue.