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 3b31e35 commit 6feee5dCopy full SHA for 6feee5d
packages/gatsby/cache-dir/static-entry.js
@@ -421,7 +421,9 @@ export default async function staticPage({
421
})
422
423
// Add page metadata for the current page
424
- const windowPageData = `/*<![CDATA[*/window.pagePath="${pagePath}";${
+ const windowPageData = `/*<![CDATA[*/window.pagePath=${JSON.stringify(
425
+ pagePath
426
+ )};${
427
process.env.GATSBY_SLICES
428
? ``
429
: `window.___webpackCompilationHash="${webpackCompilationHash}";`
0 commit comments