It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hello support,
I have run a successful space import from my PreProd confluence instance to my Production instance.
In general everything is fine, but a few internal links are broken.
As storage format, the link from PageA to PageC is a link with page title, not with any hardcoded pageId:
<ac:link><ri:page ri:content-title="Product Discontinuation (ABC)" /><ac:plain-text-link-body><![CDATA[product discontinuation]]></ac:plain-text-link-body></ac:link>
This storage format is the same in both version of the wiki (exported and imported). The page with that title (PageC) does exist in both wiki too, BUT when reading this page, the URL does not show the page title, but the pageId :
It looks like confluence has all information to be able to recover these links (page titles are unique in spaces), how can I recover this case, is there a way to force reindexing or something like this ?
Is it possible to enforce confluence to regenerate page link via title, so that
becomes:
?
I am pretty sure that if I can trigger this kind or "reindexing", the internal links will work back.
UPDATE
In this case, the issue happens with pages that have parenthesis in the name (page title = "Product Discontinuation (ABC)" for instance). I just saw this related KB article:
But I don't understand on detail: here '(' and ')' are forbidden characters, but if I update my page title with a random suffix, my link changes from:
/pages/viewpage.action?pageId=79495906
to
/display/spacekey/Product+Discontinuation+%28ABC%29+title
So... it looks like it can be handled in the page URL ??
We are now using Confluence 5.6.3
Thanks and best regards
Colin
Hello,
I had a deeper look at the DB, and I found the root cause.
All my dead links were having actually more than parenthesis as per my example. They had actually a quote in the original title.
This is the state of the DB in both wiki (exported from, and imported in):
In the imported wiki, in DB, the ’ became a ' .
Then all my links based on page title were dead.
To fix that, I had to run a SQL query to repair all the page title with ' ; in order to have the ’ back:
UPDATE [db].[CONTENT] SET TITLE = REPLACE(TITLE, '(PLM ABC''s)', '(PLM ABC’s)') WHERE SPACEID = {space_id} AND TITLE like '%(PLM ABC''s)%'
After that query, all the links were valid.
I think there is an error in Export / Import process somewhere, the special right single quotation mark became a single quote.
The ticket to fix the corresponding issue has been created by Atlassian:
https://jira.atlassian.com/browse/CONF-41354
I can see one "painful" solution here:
Write a script (SQL / Java ... ?) that:
<
ac:link
><
ri:page
ri:content-title
attribute valueisn't it a better and faster solution ?
Hi Colin,
You can contact Atlassian Support here: https://support.atlassian.com/customer/servicedesk-portal
Regards,
Kay
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.
Read moreHi 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...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.