I am trying to add a contacts form on multiple cms/products pages. I copied the default contacts formfrom phtml and pasted itthem into a new phtml file. However, submitting the form redirects to the contacts page when I want it to remain on the page they completed the form on. So I created a custom module in order to override the controller and change the redirect.
Upon submitting this form, I am sent to example.com/modalcontacts/index/post (not my real website), which is a 404 page, and no email is sent. I checked in the magentoMagento backend and it recognizes SiDev_ModalContacts as a module and it is enabled. And I have refreshed/flushed the magentoMagento cache from the backend. It seems to not recognize that my controller is there. As far as I'm aware, the correct method to set the form action to the controller is "frontName/controller/action" which would in fact be "modalcontacts/index/post", but it doesn't work. What am I missing?