diff --git a/utilities/data/getStoryblokRedirects.mjs b/utilities/data/getStoryblokRedirects.mjs index e0f603ab..5cc20812 100644 --- a/utilities/data/getStoryblokRedirects.mjs +++ b/utilities/data/getStoryblokRedirects.mjs @@ -51,7 +51,8 @@ const sanitizeRedirectCode = (code) => { const sanitizeSourcePath = (str) => { const parts = str.split('?'); const path = parts[0]; - return path; + // Replace '*' with '(.*)' to match dynamic routes + return path.replace(/\*/g, '(.*)'); }; /**