-
Bug
-
Resolution: Fixed
-
High
-
6.1.0, 6.1.1, 6.1.2, 6.1.3
-
3
-
Severity 2 - Major
-
This ticket stems from . In that ticket, if you enter a link that contains url-encoded characters such as %25 or %2f, etc., those characters became double-encoded.CONFSERVER-45966
The resolution in CONFSERVER-45966 resolved most of these characters including all umlaut and cyrillic characters per the description of that ticket.
The problem is that there are certain characters which when encoded in the link are still being double encoded.
Those characters are: "; , / ? : @ & = + $". The encoded versions of these characters are: "%3B %2C %2F %3F %3A %40 %26 %3D %2B %24" and if the link contains any of the encoded version, that character will be double-encoded.
Workaround
Option 1: Paste the link into the editor instead of using insert link dialog.
- In this method you cannot modify the link text, so the link text will be automatically set based on the url
Option 2: Use square brackets to insert the link. [ ]
- Type "["
- Type the text you want for your link in the editor, for example "My Link"
- Type a "|"
- Type the url
- Type "]" to complete the link.
- Save or preview the page to confirm it works.
- Important! Don't open the link dialog for this link. If you do, the link will be double-encoded.
For step 4, you could also try pasting the url but this might have less success since the url will be converted to a link automatically and you might have to first undo that automatic conversion, which in turn may cause the closing "]" to have no effect. See option 3 instead.
Option 3
- Paste the URL into the editor.
- Press undo to undo any automatic link creation/extraction so you see the original URL.
- If the URL is still a link, click it, and click "Unlink" to return it back to regular text.
- At the beginning of the link, type [ followed by `Escape` to exit the Link Autocomplete
- Type the text to display for the link followed by "|"
- Now your link should look like this
- Click at the end of the link and type "]" to complete the link. This should auto-convert it to a link with the desired text.
- Save or preview the page to confirm it works.
- Important! Don't open the link dialog for this link. If you do, the link will be double-encoded.
Option 4: Using the Source Editor to change links after adding them
- Install the Confluence Source Editor (free add-on)
- Edit the page
- Click on the <> icon in the top right
- Find the href= attribute that contains the '%25' in the URL
- Replace it with just '%'
- Apply the changes and save the page
- has a regression in
-
CONFSERVER-52520 Cannot insert file link when Collab Editing Off
- Closed
- incorporates
-
CONFSERVER-37373 Links will break if contains square brackets
- Closed
- relates to
-
CONFSERVER-45966 Links containing umlaut or cyrillic characters become invalid
- Closed
- mentioned in
-
Page Loading...