Linking to specific place of page

Oleg Kolyada May 6, 2014

Hello!

I have a question about links. I need a link to a specific place of another page but i can't use anchors or headings because is necessary to input pagename - if i change pagename or heading name link will break.

Can you give me advice how to create unbreakable link to heading in another page?

Thank you.

2 answers

1 accepted

1 vote
Answer accepted
BillA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 6, 2014

You'll get a permalink if you link to the page by page-ID.

You can get the page ID by going to Tools>Attachments on a given page and looking at the page ID in the URL. It will be something like:

https://[base-url]/pages/viewpageattachments.action?<strong< a="">>pageId=1234567890

Then get the permalink for the page using this format:

http:[base-url]/pages/viewpage.action?pageId=1234567890

Oleg Kolyada May 6, 2014

No, i'm trying to get permalink not to page but to specific place of another page.

I can't use anchors because link to anchors have syntax: "page name#anchor name".

If i change "page name" link will break.

Oleg Kolyada May 6, 2014

I need link like something this: "page-ID#anchor". Does such links exist?

BillA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 7, 2014

Damn. You're right...it doesn't work if you do "page ID#anchor name."

I assume you've looked at the anchor macro? https://confluence.atlassian.com/display/DOC/Anchor+Macro

Oleg Kolyada May 7, 2014

Thank you for link. But i wrote her and did not find answer for my question. I asked product advocate team lead and he said this function is not supported at the moment.

I hope to see links like "page_ID#anchor name" in near future.

Bill, thank you for your time.

Like Mariano likes this
1 vote
DimMai March 26, 2018

I have solved the problem by using what it is known to be working: I have added a test link to the anchor in the same page where the anchor was defined. 

After updating I clicked on the test link and it correctly jumped to the anchor but showing in the address bar the whole required link: .....pageId=xxxx#<page-name-without-space>-<anchor_name>

Whatever version you have, this way you will get the link you need.

Derek Trudell January 24, 2020

Worked good for me, Thanks for the tip!  

Copying the link in the URL after clicking on a anchor link.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events