Refactor new redirect in web site sample