Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Link names

Martins
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 7, 2022

Hello,

 

Im new to Confluence and wanted to understand, how link names are created, e.g. when looking at Page Tree or navigating using Page Tree.

 

For example, I created a space and page, it will have links, something like /pages/viewpage.action?pageId=xxxx

Other page, same location, will have links to /display/[Project]/[PageName]

 

So one of the links looks nice and understandable, where it leads to, while other links just point to page with ID X.

Why sometimes I get one type of link, other times another?

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
July 7, 2022

Welcome to the Atlassian Community!

Actually, all pages have a url with the pageid=xxxx, that's the primary name for it.

The display/space/pagename format is a "friendly url", in fact an alias that lands on the same page.  There's still a pageid=xxxx behind it.  If you edit a page you get to with either type of url, you'll find the url of the editor works off just pageid=xxxx.

The friendly links are a translation of the page title.  The code that translates it can only cope with certain non-alphanumeric characters.  It translates a space into a + and doesn't do a lot else.  If you put in a simple character that is not valid in plain unencoded urls, it doesn't have a substitute, so it can't generate a url for it, and it just reverts to using the pageid=xxxx.

Moral: if you want friendly urls, don't put special characters in your page names!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events