gatsby-core-theme 1.6.16 → 1.6.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [1.6.17](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v1.6.16...v1.6.17) (2021-12-03)
2
+
3
+
4
+ ### Code Refactoring
5
+
6
+ * fix the getUrl build errors for rage sites ([7a56fcc](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/7a56fcc4ed6b84908b3c9cabc39871c8dd612ca0))
7
+
8
+
9
+ * Merge branch 'fix_path_error' into 'master' ([cbaeb02](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/cbaeb02080991a4bb2f0e6e3cd50f4d977169509))
10
+
1
11
  ## [1.6.16](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v1.6.15...v1.6.16) (2021-12-03)
2
12
 
3
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "1.6.16",
3
+ "version": "1.6.17",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -266,6 +266,10 @@ export function isTandcEnabled(extraFields) {
266
266
  }
267
267
 
268
268
  export function getUrl(path) {
269
+ if (!path) {
270
+ return '';
271
+ }
272
+
269
273
  if (path === '/') {
270
274
  return process.env.GATSBY_SITE_URL;
271
275
  }