mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-03 21:20:42 -05:00
Merge branch 'main' of https://github.com/formbricks/formbricks into survey-height-tweaks
This commit is contained in:
@@ -75,6 +75,9 @@ describe("getMetadataForLinkSurvey", () => {
|
||||
title: mockSurveyName,
|
||||
images: [mockOgImageUrl],
|
||||
},
|
||||
alternates: {
|
||||
canonical: `/s/${mockSurveyId}`,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@@ -147,6 +150,9 @@ describe("getMetadataForLinkSurvey", () => {
|
||||
title: mockSurveyName,
|
||||
images: [mockOgImageUrl],
|
||||
},
|
||||
alternates: {
|
||||
canonical: `/s/${mockSurveyId}`,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@@ -174,6 +180,9 @@ describe("getMetadataForLinkSurvey", () => {
|
||||
title: mockSurveyName,
|
||||
images: [mockOgImageUrl],
|
||||
},
|
||||
alternates: {
|
||||
canonical: `/s/${mockSurveyId}`,
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -27,8 +27,13 @@ export const getMetadataForLinkSurvey = async (surveyId: string): Promise<Metada
|
||||
baseMetadata.twitter.images = [ogImgURL];
|
||||
}
|
||||
|
||||
const canonicalPath = `/s/${surveyId}`;
|
||||
|
||||
return {
|
||||
title: survey.name,
|
||||
...baseMetadata,
|
||||
alternates: {
|
||||
canonical: canonicalPath,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user