fix: #3636515 Confirm the contact form inline and add the missing Terms and Conditions page
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.
The footer "Terms and Conditions" link also pointed at a page that did not exist, a 404 on every page.
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."content/node/01-page-terms-and-conditions.yml: a published Terms and Conditions page at /terms-and-conditions.config/canvas.content_template.node.page.full.yml: a Canvas full-view template for basic pages (title as h1, then the body), ported from Horizon Aid to Vartheme BS5 components. Without it the page had no title.
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. The footer link opens the new page (200) with its h1 title.
Found while testing installs with pt-pt, ar and fr as the default language; the bugs are language independent.
Follow-up to !88 (merged) on https://www.drupal.org/i/3636515
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