Here is the Confluence doc for anchors:
https://confluence.atlassian.com/doc/anchors-139442.html
The important bit is this:
Choose Advanced and enter the anchor name in the Link field, following the format below.
The anchor name is case sensitive, so you need to use the same pattern of upper and lower case letters as you used when creating the Anchor macro.
You need to enter page and anchor names with spaces when you link to them in the same Confluence site.
https://confluence.atlassian.com/doc/anchors-139442.html
The important bit is this:
| Anchor location | Link syntax for anchor | Examples |
|---|---|---|
| Same page | #anchor name | #bottom #important information |
| Page in same space | page name#anchor name | My page#bottom My page#important information |
| Page in different space | spacekey:page name#anchor name | DOC:My page#bottom DOC:My page#important information |
Choose Advanced and enter the anchor name in the Link field, following the format below.
The anchor name is case sensitive, so you need to use the same pattern of upper and lower case letters as you used when creating the Anchor macro.
You need to enter page and anchor names with spaces when you link to them in the same Confluence site.