fix $location for shortUrl