Add port to getCanonicalUrl()