Changed how redirection to new url works