Convert absolute links to relative links?

Hi all,

I've converted our older confluence 3.x to 5.x, all went well, however I noticed that any links to other confluence resources within a page (such as a re-direct link to view an associated resource on the same confluence) are absolute links. I believe this is because the 3.x confluence, when adding a link to another page resource, puts in the absolute path instead of relative. This wouldn't matter if we kept the same domain, however the 5.x confluence is on a different server resource and the domain is different.

Is there a utility or something that I can run which will convert all links that contain a domain equal to a string I specify, to something else that I specify?

Thanks in advance.

2 answers

Bump, anything at all?

0 vote

This functionality is in

But you would need to change the base url to the old domain, then run the script, then change back to the new base url. It doesn't have the option for you to specify an arbitrary url.

Recommend testing on a copy of your instance first.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

357 views 20 10
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