Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-41229

Anchor names with a full stop and other special characters in get removed from the content

      When migrating pages from another Wiki using the REST API it was found that internal page anchors were not always working.

      An example of this seems to be:

      <a href="#A_1.3">Link to other section</a>
      
      My text
      
      Other section
      
      <a name="A_1.3"></a>
      

      Additional example found today but with a colon

      <a href="#Ensure_that_the_transaction_manager_is_reference_for_all_64Transactional_in_the_services_layer:"> Ensure that the transaction manager is reference for all @Transactional in the services layer: </a>
      
      <h2><a name="Ensure_that_the_transaction_manager_is_reference_for_all_64Transactional_in_the_services_layer:"></a>  Ensure that the transaction manager is reference for all @Transactional in the services layer: </h2>
      

      The <a href> tag seems to be included correctly but the <a name> seems to be stripped down to an <a></a>.

      As there was code to do the migration the workaround was to convert the full stops to an underscore. These then migrated across correctly.

            [CONFSERVER-41229] Anchor names with a full stop and other special characters in get removed from the content

            There are no comments yet on this issue.

              Unassigned Unassigned
              62a5f0431503 Andrew Clark
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated: