From 56a954d4530135a10bd08a96e0c5a7ca02d85058 Mon Sep 17 00:00:00 2001 From: Dennis Ploeger Date: Mon, 9 May 2022 11:09:54 +0200 Subject: [PATCH] fix: Don't reverse Page path --- lib/api/Confluence.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/Confluence.ts b/lib/api/Confluence.ts index d9bc004..bca36dd 100644 --- a/lib/api/Confluence.ts +++ b/lib/api/Confluence.ts @@ -118,7 +118,7 @@ export class Confluence { throw new ConfluenceError(`Document ${documentId} has no URL}`) } - const path = document.ancestors.reverse().map((ancestor) => ancestor.title) + const path = document.ancestors.map((ancestor) => ancestor.title) const documentInfo = new DocumentInfo(documentId, author, lastVersionDate, lastVersionMessage, title, path, url)