a workaround for unexpected redirect links