formie
formie copied to clipboard
Submissions via GraphQL is missing site context
Describe the bug
I'm trying to adjust an email notifications for submissions that comes via GrahpQL.
For some reason, the linking context is off. the global siteUrl
isn't set, and it seems like it doesn't understand under which site context it has been submitted. I tried adding siteId to the graphQL submission, but that doesn't make a difference.
I'm trying to link to the public facing website for links and images, and I have an entry submission that also links wrong (or rather, some weird relative linking).
I'm not sure if I'm using it wrong or if it is a bug. The same variables are linking correctly on forms that are submitted normally (not via GraphQL).
Steps to reproduce
- Try to add a link to home page in the email template (like {{ siteUrl }}
- Submit form via GraphQL
- Check resulting email, which links to @web/
Form settings
Submission via GraphQL
Craft CMS version
4.8.0
Plugin version
2.1.5
Multi-site?
No
Additional context
No response