I have a Confluence (Server, 6.7.0) page with the title "5 Information security policies". (Yes, with a "hardcoded" heading number... possibly too much information: this heading is a "control" from ISO/IEC 27001:2013 Annex A.)
The page contains the heading "5.1.2 Review of the policies for information security". (If Confluence supported search'n'replace across pages out of the box, I would consider chunking the page so that this "5.1.2" heading was its own page, and the problem I'm having would evaporate. But that's another discussion.)
I've inserted an Anchor macro, with the anchor name "5.1.2", at the start of that "5.1.2 ..." heading.
Here's what I did to create a link to that anchor (that heading) from another page in the same space:
- Edit the page (where I want to insert the link).
- Select the text that I want as the link text.
- Click Insert link.
- Click Advanced.
- Begin typing the page name in the Link box. An "autocomplete" entry appears under the Link box with the page name and anchor I want, "5 Information security policies#5.1.2".
- Click that autocomplete entry. This fills in the Link box.
- Click Insert. The link text appears highlighted, but with a different appearance from page links: the link is underlined, even when I'm not hovering over it.
- Save the page.
When I view the saved page and inspect the resulting link, here's the URL (I've replaced some strings with "..."):
http:// ... /pages/createpage.action?spaceKey= ... &title=5+Information+security+policies&linkCreation=true&fromPageId=...
Clicking the link creates a new page, which is not what I want.
How do I create a link to the anchor? What am I doing wrong?
Is there is an issue with the periods in the anchor?