gatsby-core-theme 30.0.71 → 30.0.72

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
+ ## [30.0.72](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.71...v30.0.72) (2024-02-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * added extra check in regex for trailing slash + added app.js to 404 page ([0d8a14a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/0d8a14aa040e5b9e892763e05a61db4a6e2d1c1d))
7
+
8
+
9
+ * Merge branch 'tm-3997-404-page-lang' into 'master' ([109fba8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/109fba859f335b00fe551f3c7f1a31ba6bb42545))
10
+
1
11
  ## [30.0.71](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.70...v30.0.71) (2024-02-05)
2
12
 
3
13
 
package/gatsby-node.mjs CHANGED
@@ -453,15 +453,13 @@ export const createPages = async ({ actions: { createPage } }, themeOptions) =>
453
453
 
454
454
  export const onCreatePage = ({ page, actions }) => {
455
455
  const { createPage, deletePage } = actions;
456
- if (page.path.match(/^\/[a-z]{2}\/404$/)) {
456
+ if (page.path.match(/^\/[a-z]{2}\/404\/?$/)) {
457
457
  const oldPage = { ...page };
458
458
  const langCode = page.path.split(`/`)[1];
459
459
  page.matchPath = `/${langCode}/*`;
460
-
461
460
  const marketCode = Object.keys(allMarkets).find(
462
461
  (key) => allMarkets[key].path_prefix === langCode
463
462
  );
464
-
465
463
  if (marketCode) {
466
464
  // Recreate the modified page
467
465
  deletePage(oldPage);
@@ -473,6 +471,7 @@ export const onCreatePage = ({ page, actions }) => {
473
471
  marketSections: allMarketSections[marketCode],
474
472
  translations: allTranslations[langCode],
475
473
  },
474
+ component: `${__dirname}/src/components/app.js`,
476
475
  });
477
476
  } else {
478
477
  deletePage(oldPage);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "30.0.71",
3
+ "version": "30.0.72",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",