Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Some links to anchor are not working

Cedric Mariage June 7, 2019

Hi, I love the anchor feature. However, my team and I are working in French. I realized that the "page name#anchor name" syntax for links is not working properly if the page name has special characters, like accented letters.  The link simply redirects to the page. If I afterwards edit the link, the value becomes something like "Écran de recherche des données". If I then save it, it completely stops working.

Anyway, I was simply wondering if there was a way to link to an anchor with a syntax that is not using the page name. If I am not wrong, we are using the version 1000.0.0.

Thanks.

1 answer

0 votes
Pankaj Jangid
Community Champion
June 7, 2019

I am afraid you will have to make some changes in the target page as well for this. In the target page you will have to create anchor where to you to point your link to. Normally the headings work as anchors but because of special characters you will have to create anchors manually. Here is how to do it:

Add the Anchor Macro to mark the location you want to link to:

  1. Do either of the following in the Confluence editor:
    Choose Insert > Other Macros, then find and select the Anchor macro
    Type { and the beginning of the macro name, then select the Anchor macro
  2. Enter the Anchor Name (For example, 'bottom' or 'important information')
  3. Choose Insert

Now in the source page you can do this:

Link to an anchor on the same Confluence site:

  1. Select some text or position your cursor where you want to insert the link
  2. Choose Link in the toolbar or press Ctrl+K
  3. Choose Advanced and enter the anchor name in the Link field, following the format below.Anchor location Link syntax for anchor Examples
    Screenshot 2019-06-08 at 11.27.37 AM.png
  4. Enter or modify the Link Text (this is the text that will appear on the page. If this field is left blank, the page name or URL will be used as the link text)
  5. Choose Save

Complete description of this is given here - https://confluence.atlassian.com/doc/anchors-139442.html.

Cedric Mariage June 10, 2019

Hi. Thank you for your reply. However, the problem does not come from headings with special characters; we already use anchors and there are no special characters in their name. I think the problem rather comes from page titles with special characters. As I mentioned, links to anchors in these pages simply redirect to page. I thought there might be a workaround with page URL or something like that.

Pankaj Jangid
Community Champion
June 14, 2019

I have tried a couple of options but none of them are working right now. I have tried to look into HTML5 w3 standards also. But found that any character is now supported in anchors. HTML4 had issues. So it should actually work. I'll explore more. This is an interesting problem.

Jean-Francois Hetu2 April 17, 2025

We are now in 2025 and this is still an issue. Will this be adressed?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events