Can't get anchors to work for pages with ( ) in the title.

My company requires Confluence document titles to start with (PROPRIETARY)

I start with a working anchor  on page:

When I put in the parens, the URL for the page changes to:

So I tried:

And it links to the page but not the anchor

To complicate matters, I want to use the anchor in a Page properties macro so that it shows up in the Page properties report on a separate page.

The issue here is that I can't use the Insert link/Advanced function to set the anchor to current page#anchorname since Confluence removes the current page and when I run the report, it is looking for the anchor on the report page.

2 answers

0 votes

That's a limitation of html - the brackets need to be escaped in urls, but they can't be used in anchors because the escaped character is not the same as the pages actual name.

I'm afraid you are pretty much stuck, unless your company changes its policy to match internet standards (not using escaped characters in titles)

It seems all you have to do is have the first character of the title be a number or letter.

So this works

Page title: Companyname (PROPRIETARY) Pagename

and this

Page title: Pagename (PROPRIETARY)

This also works

Page title: Companyname (PROPRIETARY/PII) Pagename

They all fail the page checker looking for (PROPRIETARY) markings at the beginning of the line but the policy people seem ok with these alternatives.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

915 views 45 7
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