diff --git a/apps/web/app/s/[surveyId]/LinkSurvey.tsx b/apps/web/app/s/[surveyId]/LinkSurvey.tsx index 53387bf789..3ea44c6f74 100644 --- a/apps/web/app/s/[surveyId]/LinkSurvey.tsx +++ b/apps/web/app/s/[surveyId]/LinkSurvey.tsx @@ -96,7 +96,7 @@ export default function LinkSurvey({ formbricksSignature={product.formbricksSignature} onDisplay={async () => { if (!isPreview) { - const { id } = await createDisplay({ surveyId: survey.id }, window?.location?.origin); + const { id } = await createDisplay({ surveyId: survey.id }, webAppUrl); const newSurveyState = surveyState.copy(); newSurveyState.updateDisplayId(id); setSurveyState(newSurveyState);