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.
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:
% & ? / \ ; " § +
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?
It is not possible to disable the "pretty" urls without code change. See https://jira.atlassian.com/browse/CONFSERVER-52113 for the request.
You can get at the id though. If you write a new "user macro", it can be really short:
(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)
Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...
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