Skip to content

Handle new confluence cloud pages losing anchors in references - #1181

Merged
jdknight merged 3 commits into
mainfrom
support-cloud-new-page-anchor-refs
Mar 13, 2026
Merged

jdknight merged 3 commits into
mainfrom
support-cloud-new-page-anchor-refs

Conversation

@jdknight

Copy link
Copy Markdown
Member

When publishing a new documentation set to a space, there can be documents that reference each other before their targets have been published. While most references will work once all pages are published, there is an issue where references with anchors will have their anchor values dropped [1].

This commit tries to perform a risk assessment of pages that may have anchors dropped due to this issue. When detected, this extension will re-publish the page a second time after all documents have been processed. This re-publication should restore the desires anchor values.

Note, this change does not fix existing use cases that have published and exhibited bug CONFCLOUD-78192.

[1]: https://jira.atlassian.com/browse/CONFCLOUD-78192

jdknight added 3 commits March 7, 2026 07:42
Adjusting the internal publish/storage-page calls to note when a new
page has been created (versus updated). This information is now
reflected in the `confluence-publish-page` event.

Signed-off-by: James Knight <git@jdknight.me>
Adjusting the internal publish/storage-page calls to allow a caller to
force a publish event, whether or not what an automatic detection and
force configuration value is set to. This can be useful for upcoming
implementation where we want to always publish a given page.

Signed-off-by: James Knight <git@jdknight.me>
When publishing a new documentation set to a space, there can be
documents that reference each other before their targets have been
published. While most references will work once all pages are published,
there is an issue where references with anchors will have their anchor
values dropped [1].

This commit tries to perform a risk assessment of pages that may have
anchors dropped due to this issue. When detected, this extension will
re-publish the page a second time after all documents have been
processed. This re-publication should restore the desires anchor values.

[1]: https://jira.atlassian.com/browse/CONFCLOUD-78192

Signed-off-by: James Knight <git@jdknight.me>
@jdknight
jdknight merged commit e94be2a into main Mar 13, 2026
27 checks passed
@jdknight
jdknight deleted the support-cloud-new-page-anchor-refs branch March 13, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant