space key in page URL

W have some pages in our Confluence instance that do not have the space key in the page URL. As a result, some of the Confluence macros can not be used with these pages. 

What causes a page NOT to have the space key as part of the URL?


regular page url - https://(baseURL)/display/CON/C15+2015+Delivery

other page url - https://(baseurl)/pages/viewpage.action?pageId=63866104

1 answer

1 accepted

3 votes
Accepted answer
Ann Worley Atlassian Team Jan 16, 2015

Hi JT,

That is caused by having special characters in the page title. There is more information in this article:


Page titles without special characters will create a URL like: http://localhost:8080/display/support/Page+Title

Adding any special characters to the title will cause the pageId to be used instead: http://localhost:8080/pages/viewpage.action?pageId=1900546


Hi Ann,

Thanks for your help,

If I want to get spaceKey and title when URL
like: xxxxxxxxxx/display/"spaceKey"/"title"

Can I usually substring this URL to get them safely?

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 ...

1,442 views 110 8
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