Hi All
In my confluence 4.3, i have lot of users hardcoding links to the attachments (instead of using the attachment macro) that are uploaded on confluence.
The problem with this is that if i change my confluence URL then all these hardcoded links will break.
What are my options to not let the links break?
Rahul
Another option for changing the base URL is to do the following:
Use the sed
command on this file to change your URLs from the old to the new. For example:
# sed -i "s/OLD-URL/NEW-URL/g" DATABASE_SQLDUMP_FILE
As with anything involving the database, make sure you perform a back-up that you will leave unchanged that you can restore if something goes wrong. Also, first try this out within a test environment.
From my experience though - this procedure has worked well for me and avoided having to install add-ons.
Hi Aich,
I found this answer that seems very similar with this question. I think worth it to try. However, it is a third part plugin, so you need to install it. The plugin can be found in this link.
After you have installed the plugin, you can try this command line:
confluence --action runFromContentList --runFromPageList "\"https://confluence.in.here.com\"" --space NAME-OF-A-SPACE --common "--action modifyPage --id @pageId@ --findReplace \"https://wiki.ad.navteq.com/confluence#https://confluence.in.here.com\" --special \" #\" "
I hope it helps.
Regards,
Renato Rudnicki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
An option I've used for this kind of thing is to write an external script (I use Python and XML/RPC) that reads pages, finds and changes the text, and saves the pages back.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.