Relocate redirect functionality to application