-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
4.3.5, 4.3.7, 5.0.1
-
None
Steps to Reproduce
- Create a page with title åê
- Insert the following Wiki Markup to the page:
{toc} h1. Heading 1 {loremipsum} {loremipsum} h1. Heading 2 {loremipsum} h1. Heading 3 {loremipsum}
- Save the page
- Copy the link of "Heading 2" from the Table of Contents macro, which should be in the following format:
http://<confluence-url>/pages/viewpage.action?pageId=<contentID>#id-åê-Heading2
- Create a new page titled "Test"
- Paste the copied link into the editor and then save the page
- Click on the link
Expected Results
When the page åê loads, it should point to the correct anchor heading (i.e. "Heading 2").
Actual Results
The page does NOT point to the correct anchor heading (it shows the content as if the anchor is not defined/incorrect)
Environment Information
Tested on Confluence 4.3.5, 4.3.7, 5.0.1 using Chrome
Findings
When the link is pasted into the editor, the XHTML code is:
Unable to find source-code formatter for language: xhtml. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
<ac:link ac:anchor="åê-Heading2"> <ri:page ri:content-title="åê"/> </ac:link>
This is wrong. The anchor name should be without åê-:
Unable to find source-code formatter for language: xhtml. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
<ac:link ac:anchor="Heading2"> <ri:page ri:content-title="åê"/> </ac:link>
NOTE: This issue does not occur when the source page does not include special characters.
Workaround
- Instead of pasting the link directly into the editor, click the "Link" icon instead and under "Web Link", paste the link into the text box
- Edit the link and change it from
åê#åê-Heading2
to
åê#Heading2
This means that the characters between # and - need to be deleted (including the - character).
- Edit the anchor name using the Source Code Editor
- duplicates
-
CONFSERVER-26765 Redirect to anchors in pages with titles that contain special characters is broken
- Closed