Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Confluence article slug

Josh Smith July 13, 2017

Is there a way to change the article slugs used on Confluence? We would like to use unique numbers rather than article titles in our URLS.

 

For instance:

https://mysite.atlassian.net/wiki/display/space/490294

 

Instead of:

https://mysite.atlassian.net/wiki/display/space/This+is+a+document

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 13, 2017

A slug is a garden-munching invertebrate, or slang for a bullet.  You obviously mean urls though.

Confluence tries to generate "friendly" urls automatically, but it will always still respond when you use the page ID in a url - the first format you gave is always valid.

I don't think you can turn off friendly urls in Cloud (and I'm not sure it's easy on server), but there is a trick - friendly urls are only generated when it can translate them into something that works.  The process chokes if there's any characters it can't handle in the title, and it reverts to using the page id.  So if you get your users to stick odd characters in every page name...

Josh Smith July 13, 2017

Thank you for the swift answer!

Also: https://en.wikipedia.org/wiki/Semantic_URL

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 13, 2017

I still shudder at the word "slug", no matter how it's appropriated for a different use.  Horrible ugly creatures that eat my garden and slime things up worse than a hungry ghost!  :-)

Josh Smith July 13, 2017

Fair enough :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events