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

TOC Macro URI malformed error occurs with a link containing percentage

    XMLWordPrintable

Details

    Description

      Bug Fix Policy

      At the moment, we can't set an ETA for the fix to be released, since there's a number of factors that determine how our product team prioritizes bugfixes.
      You can learn more by reading Atlassian Cloud Bug Fixing Policy.

      Issue Summary

      The link in ToC doesn't work properly due to the lack of percent-encoding.

      Steps to Reproduce

      1. Create a page with a header: "H2 10% Sample Header"
      2. Place a Table of Content (ToC) macro
      3. Publish the page
      4. Click the link in the ToC
      5. The error occurs: "We've hit a snag"

      Expected Results

      User can jump to the linked header via ToC.

      Actual Results

      Links with percentage don't work due to the error below:

      URIError: URI malformed at decodeURIComponent (<anonymous>) at X.renderRenderer (https://confluence-v1.prod.atl-paas.net/master/fabric-renderer~dc51bad7.SqPhw8aBSf.js:25:4778) at https://confluence-v1.prod.atl-paas.net/master/fabric-renderer~dc51bad7.SqPhw8aBSf.js:25:5587 at re (https://confluence-v1.prod.atl-paas.net/master/67.Uft3zQy746.js:151:46945) at $i (https://confluence-v1.prod.atl-paas.net/master/vendors~4134d62c.MLUonLJw2g.js:2:668899) at Da (https://confluence-v1.prod.atl-paas.net/master/vendors~4134d62c.MLUonLJw2g.js:2:677760) at yu (https://confluence-v1.prod.atl-paas.net/master/vendors~4134d62c.MLUonLJw2g.js:2:716357) at cs (https://confluence-v1.prod.atl-paas.net/master/vendors~4134d62c.MLUonLJw2g.js:2:707686) at us (https://confluence-v1.prod.atl-paas.net/master/vendors~4134d62c.MLUonLJw2g.js:2:707611) at Zu (https://confluence-v1.prod.atl-paas.net/master/vendors~4134d62c.MLUonLJw2g.js:2:704641)
      

      Workaround

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

      Consider adding yourself as a watcher to be kept informed as to the state of this feature request moving forward. With that way, if our development team updates the ticket, you'll be notified via email.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kyamamoto@atlassian.com K. Yamamoto
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: