Confluence: Is there any way to sum up all the links in a space and put them into an index or to relocate the spacekey of every internal link to another spacekey?

When I copy a space (A) with internal links on the pages, the links in the copied version (B) still link "A", because some people use the function "web link" even for internal confluence links.

Now I want to change these links but there are really al lot of them. So is there any way to change the spacekeys or (if there is no other option) to get an index of every link within the space to look if it is okay or (if not) change it manually?

Or maybe there are other options...

Thank you for helping me.

1 answer

1 accepted

Accepted Answer
2 votes
Peter Koczan Atlassian Team Dec 05, 2012

Hi,

There is no standard way to do so, however to achieve this you may want to try to export the space to XML, edit the XML and write a regular expression to replace she space key in question for internal links, then load the XML back to Confluence

Part of this procedure is described on this page: https://confluence.atlassian.com/pages/viewpage.action?pageId=169578

However, you will have to make some additional steps to ensure that web links are also replaced.

Cheers,

Peter

Hi,

thank you for answering my question.

We have exported the space but it was not really helpful. because there are so many ways to link pages and everybody use his own way. After all I went through the dokument and checked every link, so... I think we have to control the way we use linking in our confluence.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

138 views 6 8
View post

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