added slashes support to redirect url