Repository navigation
Handle new confluence cloud pages losing anchors in references - #1181
Merged
Merged
Conversation
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>
This was referenced Mar 13, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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