diff --git a/docs-utils/troubleshooting-structure-adjustment.js b/docs-utils/troubleshooting-structure-adjustment.js index 43b78f198..24e791d93 100644 --- a/docs-utils/troubleshooting-structure-adjustment.js +++ b/docs-utils/troubleshooting-structure-adjustment.js @@ -39,8 +39,8 @@ function moveAllTags(folderPath) { async function adjustTroubleshootingContent() { console.log('Adjusting troubleshooting content...') for (locale of locales) { - const oldPath = path.join(`/docs/${locale}/tutorials/troubleshooting`) - const newPath = path.join(`/docs/${locale}/troubleshooting`) + const oldPath = path.resolve(`/docs/${locale}/tutorials/troubleshooting`) + const newPath = path.resolve(`/docs/${locale}/troubleshooting`) fs.renameSync(oldPath, newPath) moveAllTags(newPath) }