Skip to content

Correct Embedded Form note: snippets use the configured Site URL - #936

Merged
adiati98 merged 3 commits into
mautic:7.2from
Promptless:promptless/pr-17193-embedded-form-site-url
Sep 4, 2026
Merged

Correct Embedded Form note: snippets use the configured Site URL#936
adiati98 merged 3 commits into
mautic:7.2from
Promptless:promptless/pr-17193-embedded-form-site-url

Conversation

@promptless-for-oss

Copy link
Copy Markdown
Contributor

Open in Promptless

The Embedded Form JavaScript and IFrame snippets now use your configured Site URL — its scheme, host, and base path — rather than the domain of the admin host you're currently viewing Mautic on. This corrects the note under the Embedded heading in the Forms docs, which previously told users to be on the correct domain because the embed code referenced the current URL. The note now explains that the Embedded snippets use the configured Site URL, points readers to set it under Configuration > System Settings > General Settings, and notes the fallback to the current request host when Site URL is unset. A cross-reference to the Site URL configuration setting is added. The Self-hosted (manual copy) note is unchanged, since those snippets still reference the current host.

Trigger Events

The Embedded Form JavaScript and IFrame snippets now use the configured
Site URL rather than the current admin host (mautic/mautic PR #17193).
Update the Embedded note in forms.rst accordingly and add a cross-reference
to the Site URL configuration setting.
Comment thread docs/components/forms.rst Outdated
Comment thread docs/components/forms.rst Outdated
Comment thread docs/components/forms.rst Outdated
Comment thread docs/components/forms.rst Outdated
Comment thread docs/configuration/settings.rst
patrykgruszka
patrykgruszka previously approved these changes Sep 2, 2026

@patrykgruszka patrykgruszka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid and useful 👍

Comment thread docs/components/forms.rst Outdated
@promptless-for-oss

Copy link
Copy Markdown
Contributor Author

Thanks @adiati98 — on it. We'll swap the em dashes for hyphens and rewrite the passive-voice sentences in active voice to match the style guide, then push the update to this PR.

Address @adiati98's review on PR mautic#936:
- Convert em dashes to spaced hyphens in the Embedded Form note
- Rewrite passive 'If Site URL isn't set' as active 'If you haven't set the Site URL'
@promptless-for-oss

Copy link
Copy Markdown
Contributor Author

Done, @adiati98 — both changes are in and pushed to this PR:

  • Em dash → hyphen: both em dashes in the Embedded Form note are now hyphens, matching the style guide.
  • Passive → active voice: rewrote "If Site URL isn't set…" as "If you haven't set the Site URL…". The note's meaning is unchanged.

Vale ran clean on the changed file (no new findings). Ready for another look whenever you have a moment.

@adiati98 adiati98 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review, @patrykgruszka! 🚀

@adiati98
adiati98 merged commit ade137a into mautic:7.2 Sep 4, 2026
3 checks passed
@promptless-for-oss
promptless-for-oss deleted the promptless/pr-17193-embedded-form-site-url branch September 4, 2026 09:33
@adiati98

adiati98 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

@all-contributors please add @patrykgruszka for review.

@allcontributors

Copy link
Copy Markdown
Contributor

@adiati98

I've put up a pull request to add @patrykgruszka! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants