Issue Summary

      The excerpt-include macro allows you to refer to a page that’s been archived, even though the preview pane shows the error in the screenshot below. An excerpt referenced in this manner shows up correctly in the edit and view mode of the page.

      However if you try to do the same thing by using the macro within another macro like Table of Content Zone, the macro breaks with the same error (Error message: "Error rendering macro 'excerpt-include' : No link could be created for '<SpaceKey>:<Page>'.") in the view mode, although it does display the correct content in edit mode.

      Steps to Reproduce

      1. On a page on your instance, use the excerpt macro to create an excerpt, and then archive the page.
      2. On another page, use the excerpt-include macro to refer to the page created in step 1. The preview pane of the macro will show an error.
      3. Save the macro settings and you'll see that the edit mode, as well as the view mode after publishing, show the excerpt.
      4. Now repeat step 2, but put the excerpt-include macro inside another macro like Table of Content Zone.
      5. You will see that the page renders the excerpt in the edit mode, but breaks with the same as error as in Preview pane in view mode.

      Expected Results

      The excerpt-include macro should behave consistently in all scenarios when working with archived pages.

      Actual Results

      The excerpt-include macro works correctly when working with archived pages when it's at the root of the page but breaks when it's nested within another macro

      Workaround

      The only workaround is to move the macro out of the nesting, which may not always be the intended use case.

            [CONFCLOUD-73245] Excerpt Include macro breaks for archived pages

            SET Analytics Bot made changes -
            Support reference count Original: 2 New: 3
            Liliia Khoroz (Inactive) made changes -
            Labels Original: confirmed-bug New: confirmed-bug ss-excerpt-include
            Ivan Piatnytskyi (Inactive) made changes -
            Labels New: confirmed-bug
            SET Analytics Bot made changes -
            UIS Original: 1 New: 0
            SET Analytics Bot made changes -
            UIS New: 1
            Bugfix Automation Bot made changes -
            Support reference count Original: 1 New: 2
            Nick Bourlier made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 606025 ]
            Bugfix Automation Bot made changes -
            Support reference count New: 1
            Erik Gui made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Harshit Kandpal (Inactive) created issue -

              Unassigned Unassigned
              e82d60a8911d Harshit Kandpal (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated: