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

Anchor and header links creates static links

    XMLWordPrintable

Details

    Description

      Issue Summary

      When we paste an anchor or header link to a page creates static links instead of dynamic ones.

      Steps to Reproduce

      1. Create a new page called Page A.
      2. Create a new page called Page B.
      3. On the Page B create a header and an anchor.
      4. On the Page A create a link to the header and anchor from Page B.

      If you export those pages to HTML the links are static and point to the web instead of the html links.

      Expected Results

      Create dynamic links using ac:link instead of href:

      <ac:link ac:card-appearance="inline"><ri:page ri:content-title="Page B#Anchor" ri:version-at-save="X" /><ac:link-body>Page B</ac:link-body></ac:link>

      OR

      <ac:link ac:card-appearance="inline"><ri:page ri:content-title="Page B#Header" ri:version-at-save="X" /><ac:link-body>Page B</ac:link-body></ac:link>

      Actual Results

      It creates the following static links using href instead of ac:link:

      <a href="https://<SITENAME>.atlassian.net/wiki/spaces/<SPACKEY>/pages/<CONTENTID>/Page+B#Anchor" data-card-appearance="inline"><SITENAME>.atlassian.net/wiki/spaces/<SPACKEY>/pages/<CONTENTID>/Page+B#Anchor</a>

      OR

      <a href="https://<SITENAME>.atlassian.net/wiki/spaces/<SPACKEY>/pages/<CONTENTID>/Page+B#Header" data-card-appearance="inline"><SITENAME>.atlassian.net/wiki/spaces/<SPACKEY>/pages/<CONTENTID>/Page+B#Header</a>

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              9970e8dcf1de Henrique R (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: