small correction to redirect_url generation