formie icon indicating copy to clipboard operation
formie copied to clipboard

Submissions via GraphQL is missing site context

Open jishi opened this issue 2 months ago • 5 comments

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

  1. Try to add a link to home page in the email template (like {{ siteUrl }}
  2. Submit form via GraphQL
  3. 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

jishi avatar Apr 05 '24 16:04 jishi