public IActionResult Index(string hash) { var URL = _repository.GetUrlForHash(hash); if (URL.Contains("http://") || URL.Contains("https://")) { return(Redirect(URL)); } else { return(Redirect("http://" + URL)); } }