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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Colin,
You can contact Atlassian Support here: https://support.atlassian.com/customer/servicedesk-portal
Regards,
Kay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
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.