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 9ba759a commit b3391e9Copy full SHA for b3391e9
src/gatsby/onPostBuild.ts
@@ -72,10 +72,10 @@ const parsePathSlug = (slug: string) => {
72
const pathMatch = slug.match(
73
/^\/(?<platform>[^/]+)\/performance-onboarding\/(?<sub_platform>[^/]+)\/(?<step>[^/]+)\/$/
74
);
75
-
+ console.log('slug', slug);
76
const { platform, sub_platform } = pathMatch.groups;
77
- let { step } = pathMatch.groups;
78
- step = step.replaceAll(".", "-");
+ let step = pathMatch.groups.step;
+ step = String(step).replaceAll(".", "-");
79
let sub = `performance-onboarding-${sub_platform}-${step}`;
80
81
if (platform === pathMatch.groups.sub_platform) {
0 commit comments