diff --git a/lib/helpers/isRootCatchAllRedirect.js b/lib/helpers/isRootCatchAllRedirect.js index 8363f69..18bef47 100644 --- a/lib/helpers/isRootCatchAllRedirect.js +++ b/lib/helpers/isRootCatchAllRedirect.js @@ -1,5 +1,7 @@ // Return true if the redirect is a root level catch-all -// (e.g., /[[...slug]]) -const isRootCatchAllRedirect = (redirect) => redirect.startsWith("/*"); +// (e.g., /[[...slug]] or /[...slug]) +const isRootCatchAllRedirect = (redirect) => + redirect.startsWith("/*") || + (redirect.startsWith("/:") && redirect.includes("/*")); module.exports = isRootCatchAllRedirect;