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

This widget could not be displayed.
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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 10 hours ago in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

27 views 3 4
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