Modified the shortened url method to remove port