fixing the redirect url