We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8a5cd7 commit 078640eCopy full SHA for 078640e
src/packages/next/pages/share/public_paths/[...id].tsx
@@ -70,12 +70,14 @@ export async function getServerSideProps(context) {
70
71
const customize = await withCustomize({ context, props });
72
73
- // Add full URL for social media sharing
74
- //
75
- customize.props.ogUrl = `${customize.props.customize.siteURL}${shareURL(
76
- id,
77
- relativePath,
78
- )}`;
+ if (customize != null) {
+ // Add full URL for social media sharing
+ //
+ customize.props.ogUrl = `${customize.props.customize.siteURL}${shareURL(
+ id,
+ relativePath,
79
+ )}`;
80
+ }
81
82
return customize;
83
} catch (_err) {
0 commit comments