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

Change Confluence URL Default to use Page ID

Hi there,


We would would like to configure Confluence so that it always shows page URL in following format: 

<Confluence Base URL>/pages/viewpage.action?pageid=<pageid>


Currently it displays in the following format: 

<Confluence Base URL>/display/<Space Key>/<Page Title>


Someone posted the same question over 5 years ago here on the forums.

I'm hoping there's a solution for this now?

Any help/guidance would be much appreciated. 


Thank you


4 answers

0 votes

Hi @Omar Hafez 

 The Confluence URL format is based on the page title, there are conditions in which can prevent the pretty format from being generated. These conditions include:

  • If the page title contains a URL reserved or unsafe character, such as:

    % & ? / \ ; " § +
  • Or, if the final character of the page title is of any non-alphanumeric character

If either of these are true, Confluence will default to using the pageId URL format instead of trying to generate a pretty URL with the page title.

In your case, you will have to use any special character in the title of the page, then only the URL format can be in pageID format.


For more information, please visit this KB.



@Kiran Panduga (Appfire) Thanks for the quick response!

I would imagine it would be relatively difficult to enforce this kind of practice across an entire organisation, is there no way other way to have Page ID URL as the default (without the conditions)? I've used confluence in other organisations in the past that have setup a macro of some sort that displays the Page ID on the page, and when clicked on, refreshes the page, except now with the Page ID URL format.  

Do you know how this is done? 


I still haven't found the answer I'm looking for. Anyone else able to weigh in? 

0 votes

It is not possible to disable the "pretty" urls without code change.  See for the request.

You can get at the id though.  If you write a new "user macro", it can be really short:

## @noparams

(This is from memory, it might not be quite right, and it is very plain, you literally just get the content ID and nothing else)

Suggest an answer

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

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

408 views 23 8
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