Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Permalinks with anchor

Deleted user August 30, 2017

Are there any way to generate a share link URL with anchor as a permalink?

  • Instead of using naive URL pages/viewpage.action?pageId=... , share link URL is recommended to share because pageId will be changed as page version incremented. Share URL is permalink for the page.
  • To navigate specific position in page, anchor which ToC macro generates is used.
  • Regarding both, I'm searching for the way to generate a share link URL with anchor like https://confluence/x/cYTy#some_position_in_page

2 answers

1 accepted

1 vote
Answer accepted
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 1, 2017

 

Hello Ryota,

It's not possible to automatically generate the link, but you should be able to simply add a hashtag # and the name of the anchor after the Tiny URL, as in your example.

So:

Let's take a tiny URL for one Atlassian page: https://confluence.atlassian.com/x/siAC

If I take the hashtag and anchor name from that page (#Anchors-Step1Step1:Createtheanchor) and add it to the tiny URL, you end up with the tiny URL which has a working anchor tag: https://confluence.atlassian.com/x/siAC#Anchors-Step1Step1:Createtheanchor. This URL will now lead you to the anchor in that page, as you can check with this example.

Are you able to link to your anchors in this way? 

Kind Regards,
Shannon

Oleksii Raskalei
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2018

Hi Shannon,

It does not work in my case. Do you have ideas what may be wrong and what should I check? 

PS: tiny links and anchor name double checked and they are correct.

 

Thank you,

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 18, 2018

Hello Oleksii,

Can you show us how you're building your links, and what happens when you try to navigate to them?

What version of Confluence are you using?

Shannon

1 vote
Tamas Marosvari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2018

Is it possible to create a permalink to a confluence page, e.g now my URL depends on the page title, if my page title was to change, my URL changes too.

 

I want to link confluence page in email templates, and in order to avoid manual (impossible) updating in the future, I just wanna create a permanent link for each page so even if I change the title, the URL doesnt change?

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 23, 2018

Hi Tamas,

The original question here was related to using anchors with the permalinks but your question doesn't mention them.

Are you trying to link to a specific page, or do you want to link to a section on the page?

If you just want to link to the page then you just have to use the tiny link. You can find this from looking at the page information.

Let me know if you have any questions.

Regards,

Shannon

Like Ole Jørgen likes this
Phil October 24, 2019

Hi Shannon,

 

I think Tamas is looking for a permalink without the page name, pointing to an anchor.

For instance, using your example: https://confluence.atlassian.com/x/siAC#Createtheanchor 

 

That does not work, unfortunately. Is there any other way to skip the page name? 

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 29, 2019

Phil,

My original reply was testing the Tiny Link (I believe this is what you mean by permalink?) with an anchor. Your example is of my working example from back in 2017.

At the time of that message, it was working properly in Confluence Server, but it's been a few years since then.

If it's not working in Confluence Server for you, please raise a new question and include your current Confluence version. Then we can have a look at that issue with the more recent versions of Confluence.

If you are on Cloud, this feature is not working at this time: 

In addition, linking to an anchor on another page will not work, due to this bug: 

  • CONFCLOUD-67771 Anchor links from a page placed in another one don't redirect to the anchor link

Regards,

Shannon

Phil October 29, 2019

Hi Shannon,

thanks a lot for your reply! I'm working on Confluence Data Center. Linking to anchors on other pages works fine. Any further suggestions?

 

Regards,

Phil

Like Shannon S likes this
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 29, 2019

Phil,

Thank you for confirming that. I tested this in 2017 against the latest Server version at the time. In this case, I would recommend either raising a new question for this, or a file a ticket with Support.

Thank you!

Regards,

Shannon

Like Phil likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events