Changed createAndHash method in UrlRepository