Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

pageid vs page name

Created  pages sometimes show in the browsers url at the and the pageid, somtimes the page name.

Why is there a difference and how can I have influence on that?

2 answers

@Ross Ursula - Page IDs do not change whereas page names can be changed. Page name works fine for searches. I am unsure of your use case, but if it is about automation, you can prefer page ids for page references.

0 votes

As far as I know, it depends on whether the page name can be safely encoded in the URL.

For instance, if the page name uses Latin characters only and it is relatively short, it is safe and readable in the URL, so Confluence prefers that. But if it is very long or if it uses "more exotic" characters, the URL would become ugly, and Confluence decides to identify the page by its ID.

It is a convention that has been in place since very-very old Confluence versions.

(You can always use the ID in the URL, even when Confluence prefers the name.)

Thank you Aron, that was very helpful!

Can you tell me how I always get the ID in the URL, even when Confluence prefers the name? I can see the ID when I go to "View Storage Format" but I don´t get the document to be saved  with the ID in the URL. 

Ross, I went as far as I looked this up in the Confluence code.

Please see the comment about the logic that chooses between name-based and ID-based URLs:

public static String getPageUrl(AbstractPage page) {
if (page == null || (page.isLatestVersion() && page.getSpace() == null))
return "";

String title = page.getTitle();

// only use simple/nice page url if the page does not contain:
// - non-ASCII characters
// - '+' or '-' characters because these can be picked up by the insert and stripe through filters
// - double quotes (") because orion doesn't play nicely with them (CONF-1287)
// - ends in punctuation (CONFDEV-3995)
if (isSafeTitleForUrl(title) && page.isLatestVersion())
return toDisplayUrl(page);
return getIdBasedPageUrl(page);

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

146 views 0 5
Read article

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