Skip to content

Commit

Permalink
hotfix(CMS.Api): restore preview URL params (#2044)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen authored May 9, 2024
1 parent 7b1bd5d commit c53fe97
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/cms/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c53fe97

Please sign in to comment.