space key in page URL

Jeanne Howe
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2015

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
Answer accepted
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 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
Xing Guo October 7, 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
TAGS
AUG Leaders

Atlassian Community Events