Skip to content

fix(share): use the guild's verified custom domain for form links#207

Merged
Musiker15 merged 1 commit into
mainfrom
fix/share-uses-custom-domain
Jul 15, 2026
Merged

fix(share): use the guild's verified custom domain for form links#207
Musiker15 merged 1 commit into
mainfrom
fix/share-uses-custom-domain

Conversation

@Musiker15

Copy link
Copy Markdown
Member

Customer report: when sharing a form, the Share panel shows the default MSK link instead of the custom domain.

Cause

The per-form Share panel (link, QR code, embed snippet) built its URL from appBaseUrl() (the primary domain) regardless of the guild's custom domain. So a guild with a verified custom domain still got a forms.msk-scripts.de/f/... link.

Fix

The forms dashboard page now resolves the public base URL to the guild's custom domain when customDomainVerifiedAt is set, falling back to the primary domain otherwise. That base drives the shared link, the QR code and the embed iframe, so all three point at the branded domain. Verified custom domains already serve /f/[slug] for their own guild, so the link resolves.

No schema change. Typecheck, lint and build green.

The per-form Share panel (link, QR code and embed snippet) always built the URL
from the primary domain via appBaseUrl(), so a guild with a verified custom
domain still shared the default forms.msk-scripts.de link. The forms page now
resolves the public base to the guild's custom domain when customDomainVerifiedAt
is set, and falls back to the primary domain otherwise. Live forms are served on
the custom domain, so the shared link resolves correctly.
@Musiker15
Musiker15 merged commit 9bdf193 into main Jul 15, 2026
4 checks passed
@Musiker15
Musiker15 deleted the fix/share-uses-custom-domain branch July 15, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant