fix: #3636516 Confirm the contact form inline so submitting no longer shows an error
Submitting the Contact Us form showed "Oops, something went wrong": the form sits in a Canvas page, so its Ajax submit gets the whole page back instead of JSON. The submission is saved anyway, so a visitor who retries creates a duplicate.
Turning Ajax off alone is not enough. The default confirmation redirects to <front>, and inside a Canvas component that redirect renders as a Twig RuntimeError in place of the form.
Fix
recipe.yml: the Business Contact webform submits without Ajax and confirms inline with "Thank you for contacting us. We will get back to you soon."
Tested
Tested 10 November 2026 on a fresh drush install of 1.0.x-dev on Drupal CMS 2 (Chromium, Playwright): a normal form POST, no "Oops" and no Twig error, the confirmation shows inline.
Found while testing installs with pt-pt, ar and fr as the default language; the bugs are language independent.
Follow-up to !99 (merged) on https://www.drupal.org/i/3636516
AI-Generated: Yes
Checkpoints:
- File an issue
- Addition/Change/Update/Fix
- Testing to ensure no regression
- Automated unit testing coverage
- Automated functional testing coverage
- UX/UI designer responsibilities
- Readability
- Accessibility
- Performance
- Security
- Developer Documentation
- User Guide Documentation
- Reviewed by human
- Code review by maintainers
- Full testing and approval
- Credit contributors
- Review with the product owner
- Release notes snippet
- Release