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?

Example:

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:

https://confluence.atlassian.com/display/CONFKB/Confluence+Page+URL%27s+Contain+pageId+Instead+of+The+Page+Title

{quote}

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

{quote}
Thanks,
Ann
GUOXING I'm New Here Oct 07, 2018

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 Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,052 views 16 14
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