Skip to content

Commit 7834e6d

Browse files
committed
changed links for not accessible pages
1 parent 9e53e3d commit 7834e6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

confluence_markdown_exporter/confluence.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,10 @@ def convert_page_link(self, page_id: int) -> str:
838838
raise ValueError(msg)
839839

840840
page = Page.from_id(page_id)
841+
842+
if page.title == "Page not accessible":
843+
return f"[Page not accessible (ID: {page_id})]"
844+
841845
page_path = self._get_path_for_href(page.export_path, settings.export.page_href)
842846

843847
return f"[{page.title}]({page_path.replace(' ', '%20')})"

0 commit comments

Comments
 (0)