Finding broken internal links (such as redirects) seems to be a random event. is there a way to run a report of broken links or any other way to easily find them?
One of our tech writers wrote a Python script that you can use to check for content errors like broken links: http://blogs.atlassian.com/2011/12/scanning-confluence-for-content-errors/
You can use the reporting plugin with this code:
section}
{report-info:global:current date|format=MMMMM-dd-yyyy}{section}
{section}
{report-block}{space-reporter}
{text-sort:space:name}
{space-reporter}
{report-body}
{report-info:space:name|link=true}
{report-list}
{local-reporter:space:orphaned pages}{text-sort:content:title}
{local-reporter}
{report-body-1}{report-info:content:title|link=true} (Created by)
{report-info:content:creator|link=true} {report-body-1}
{report-empty}_No orphans in this space_{report-empty}
{report-block}{section}
Regards,
Kay
That would be nice, if the reporting plugin was not a commercial solution not availbale to everybody.
You could check for "orphaned" pages and for "list undefined pages" search, assuming that any broken link means for confluence, the page "has to be created yet".
Using the new 4.x editor, is it possible to copy/paste the above? It seems to want to paste the code as preformatted text instead of converting it to macros.
Thanks for this. I thought I should know the answer, and this was it. To do this:
Works a treat.
Greg, try using the "Insert Wiki Markup" dialog in the editor - it's in the Insert menu and will give you a plain-text window to type in wiki code.
Wow Joseph, my mind has just been blown! Didn't even realize that was possible in the 4.x editor. Thanks!
The undefined pages search is not 100% accurate, as the algorithm used to track links doesn't account for all links. Hopefully this can be fixed with future versions of the wiki renderer that allow more accurate tracking of link destinations. https://docs.atlassian.com/confluence/latest/com/atlassian/confluence/pages/PageManager.html
Despite the limitation mentioned, this is a good place to start fixing links if you're not using a script. For newer versions of Confluence, it can be found in Space Tools > Content Tools > Undefined pages.
This solution seems to be for the server instance of the confluence. Anyone knows the solution for the cloud instance?
This would be a nice feature to add to Confluence, especially for those users who work with the Cloud version.
It looks like you're new here. Sign in or register to get started.