fix: refactor OG link builder (#17897)
* fix: manually encode special characters * fix test * fix * fix
This commit is contained in:
1 parent
262738f288
commit
d057d7d37f
5 files changed
+35
-35
No files matched your search
@@ -428,10 +428,10 @@ test.describe("Bookings", () => {
|
||||
expect(canonicalLink).toEqual(`${orgOrigin}${calLink}`);
|
||||
// Verify that there is correct URL that would generate the awesome OG image
|
||||
expect(ogImage).toContain(
|
||||
"/_next/image?w=1200&q=100&url=%2Fapi%2Fsocial%2Fog%2Fimage?type=meeting&title="
|
||||
"/_next/image?w=1200&q=100&url=%2Fapi%2Fsocial%2Fog%2Fimage%3Ftype%3Dmeeting%26title%3D"
|
||||
);
|
||||
// Verify Organizer Name in the URL
|
||||
expect(ogImage).toContain("meetingProfileName=Test%20User");
|
||||
expect(ogImage).toContain("meetingProfileName%3DTest%2BUser");
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user