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

Anchor link that holds "id-" for multi-byte title wrongly converted when pasted in another page

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 6.9.1
    • Content - Linking

      Summary

      Confluence uses following format to express an anchor link in non-English(multi-byte) page title

      pages/viewpage.action?pageId=<pageid>#id-<Page title>-<Anchored heading>

      while it's expressed as below when the title is all in English.

      pages/viewpage.action?pageId=<pageid>#<Page title>-<Anchored heading>

      When you paste the former link then Confluence auto-convert the url wrongly and it doesn't navigate correctly to anchor.

      pages/viewpage.action?pageId=<pageid>#id-<Page title>-<Page title>-<Anchored heading>

      Steps to Reproduce

      1. Create a page with page title "あ" and following contents.
        <p><ac:link ac:anchor="Heading1" /></p>
        <h1>Heading1</h1>
        
      2. Copy the URL from the page above. It will be like
        http://<confluence-url>/pages/viewpage.action?pageId=<pageid>#id-あ-Heading1
      3. Create a new page and paste the above in it.

      Expected Results

      The page in step 3 has a proper anchor link to "Heading1" and user can go to the page in step 1.

      Actual Results

      It doesn't navigate to "Heading1". Just go to the page in step 1.
      This is because the link is wrong format as below.

      http://<confluence-url>/pages/viewpage.action?pageId=<pageid>#id-あ-あ-Heading1

      Note

      Regular format link URL as below works fine. It work as expected result.

      pages/viewpage.action?pageId=<pageid>#<Page title>-<Anchored heading>
      

      Workaround

      Use just English characters for page title.

            [CONFSERVER-55978] Anchor link that holds "id-" for multi-byte title wrongly converted when pasted in another page

            There are no comments yet on this issue.

              Unassigned Unassigned
              nmukai Nobuyuki Mukai
              Affected customers:
              3 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated: