It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Linking to specific place of page

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

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

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.

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

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

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.

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.

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
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

5,345 views 4 6
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you