diff --git a/scripts/docs/processors/jekyll.js b/scripts/docs/processors/jekyll.js index 0c381e304b..a429c38701 100644 --- a/scripts/docs/processors/jekyll.js +++ b/scripts/docs/processors/jekyll.js @@ -21,8 +21,10 @@ module.exports = function jekyll(renderDocsProcessor) { .replace('/index.md','') .replace('//home/ubuntu/ionic/ionic', '') .replace('//', '/'); - docs[i].relativePath = doc.relativePath - .replace('//home/ubuntu/ionic', ''); + if (docs[i].relativePath) { + docs[i].relativePath = doc.relativePath + .replace('//home/ubuntu/ionic', ''); + } }); docs.push({