How to link to an anchor in a page with pageID?

This question is in reference to Atlassian Documentation: Anchors

I want to link to an anchor or heading inside a page, but that page has no Name but an pageID. What is the syntax for linking to that anchor?

This question was already asked, but not answered yet: https://answers.atlassian.com/questions/291677

6 answers

1 accepted

2 votes

Hi Mehrdad,

Just copy the name of the page and enter it in the advanced section of the link dialog like so:

Page name#anchorname

It should work even when there are weird characters in the name. I'll add a note to the page to make this clearer.

Hi Giles,

I tried it, but it didn't work. The title of my page is "This/That" and it is in the space "Galaxy". I tried both:

Galaxy:This/That#the_anchor

and:

This/That#the_anchor

The result was "Page not found!"

I thought the slash in the tame is the problem, so I tried the whole thing on another page that did have a name --> the same problem!!

At the end I found out, the problem is the auto-converter of that textbox in the advanced page. Like many other auto-conversions in Confluence the mechanism only works, if your really type the page name just when you first click in the textbox. Pasting the text or having a wrong value then editing it, or even completely removing it and then re-typing the correct text don't work, you should really type without editing:

This/That#the_anchor

Then it works.

Alternatively you can use:

http://confluence.mycompany.com/pages/viewpage.action?pageId=34325612#This/That-the_anchor

 - Mehrdad

Worked for me. Thanks a lot!

Thanks that solved my problem too!

Every page has a name AND an ID.

Is it possible to create a page without name?!

OK, then tell me how to find out the Name of the page, when in the address bar I only see the ID?

It's the title of page, that is, the line above "Created by ..."

Well, I just click on [Create] and a new page apears. I type the title and the content, then save it. What I then see in the address bar is something like "...?pageid=897632". So even if the page has a Name, I don't know it.

Bingo! That title is the page name.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,941 views 27 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you