2.3-develop - graphql fetching issue for phtml file called in product/category descriptions
mtbottens opened this issue · 1 comments
mtbottens commented
Note: Assumption is that this happens for category description as well, but I have not confirmed that one.
Preconditions (*)
- 2.3-develop
- Configure a cms block with any content
- Configure a product description attribute with a widget directive:
{{widget type="Magento\Cms\Block\Widget\Block" template="widget/static_block/default.phtml" block_id="1" type_name="CMS Static Block"}}
Steps to reproduce (*)
- Navigate to the product with the configured description containing a widget directive. (Frontend)
- Observe that the static block is rendered.
- Request the product with graphql:
{
products(filter: { sku: { eq: "Test"} }) {
items {
description{
html
}
}
}
}
Expected result (*)
- Graphql response should contain the same content that is rendered on the frontend.
Actual result (*)
- Graphql response does not match content that is rendered on the frontend.
magento-engcom-team commented
Hi @mtbottens. Thank you for your report.
The issue has been fixed in #1058 by @mtbottens in 2.3-develop branch
Related commit(s):
The fix will be available with the upcoming release.