Refact redirect url