Skip to content

Commit

Permalink
fix: Don't reverse Page path
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed May 9, 2022
1 parent ec6715b commit 56a954d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/Confluence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 56a954d

Please sign in to comment.