Submitting a form on a CMS page that is loading a template file is returning a 404 error on the post request
I think I am running into a routing issue where my post request is not reaching my controller. Test/Example/view/frontend/templates/swatches.phtml <form action=”<? echo $block->getUrl(‘example/index/index’); ?>” id=”pgswatchForm” method=”post”> Test/Example/Controller/Index/Index.php <?php namespace TestExampleControllerIndex; use MagentoFrameworkAppActionAction; use MagentoFrameworkAppActionContext; use MagentoFrameworkViewResultPageFactory; use MagentoFrameworkMailTemplateTransportBuilder; use MagentoFrameworkAppActionHttpPostActionInterface;… Read More »Submitting a form on a CMS page that is loading a template file is returning a 404 error on the post request