From c53fe97e2880933f72500af2a9833ddb86cdb54c Mon Sep 17 00:00:00 2001 From: Cristen Jones Date: Thu, 9 May 2024 09:22:42 -0400 Subject: [PATCH] hotfix(CMS.Api): restore preview URL params (#2044) --- lib/cms/api.ex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/cms/api.ex b/lib/cms/api.ex index 05d4df7e8e..55fef29707 100644 --- a/lib/cms/api.ex +++ b/lib/cms/api.ex @@ -11,8 +11,13 @@ defmodule CMS.Api do def preview(node_id, revision_id) do path = ~s(/cms/revisions/#{node_id}) + params = [ + {"_format", "json"}, + {"vid", revision_id} + ] + client(vid: revision_id) - |> @req.get(url: path, decode_body: false, redirect: false) + |> @req.get(url: path, params: params, decode_body: false, redirect: false) |> handle_response() end