Skip to content

Commit

Permalink
fix isExcludedPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jemikanegara committed Nov 18, 2024
1 parent 106e937 commit 69adc28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/translation/isExcluded.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 69adc28

Please sign in to comment.