fix broken redirect url