diff --git a/utils/translation/isExcluded.js b/utils/translation/isExcluded.js index 7a2988c..b6449e5 100644 --- a/utils/translation/isExcluded.js +++ b/utils/translation/isExcluded.js @@ -20,6 +20,6 @@ function isExcludedPath(window) { const globalseoOptions = getGlobalseoOptions(window); const path = window.location.pathname; - return globalseoOptions.excludePaths.length && globalseoOptions.excludePaths.some(excludePath => excludePath && path.includes(excludePath)) + return globalseoOptions.excludePaths.length && globalseoOptions.excludePaths.some(excludePath => excludePath && path.startsWith(excludePath)) } exports.isExcludedPath = isExcludedPath;