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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Thursday in Off-topic

Friday Fun: Magic Eyes

...staring into the background. Once the image pops out in 3D, you can look around the picture and enjoy. If you will see if you are a true illusion master! :) You did it? :) Wow! Awesome! As a bonus...

409 views 79 11
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