Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-60723

Support context parameters in macro editor URL

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      This is unclear in Connect Document about the limitation in Custom Editor URL.
      Url context parameters are not supported for custom editor url. This is not consistent to other url value we can use for connect addon. Currently Navigation API is the only alternative for editor to determine contentId etc context for page. This needs to be either documented clearly or improved other wise.
      In V3 custom param is sent to addon url using GET, but in V5 it is missing, and it is a regression from existing feature.

      For example:

      "editor": {
                "url": "/my-macro-editor?content_id={content.id}"
      }
      

      Expected:
      editor will be called using GET /my-macro-editor?content_id=<some real id>

      Actual:
      editor is called using GET /my-macro-editor?content_id=

      Workaround

      Call AP.navigator.getLocation(...) to obtain the content ID.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zimingwang Ziming Wang
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: