Link Checker Application
![]() | Displays states of external links found in the wiki |
Type | XAR |
Developed by | |
Rating | |
License | GNU Lesser General Public License 2.1 |
Bundled With | XWiki Enterprise, XWiki Enterprise Manager |
Compatibility | XWiki 3.3M2+ |
Description
Displays states of external links found in the wiki. The state is displayed as an HTTP Response Code.
Usage
Navigate to the XWiki.ExternalLinks page an you'll see a list of all external links found in your wiki as shown below. Note that the links are discovered only when someone navigates on a page containing external links.
If you have the Index Application installed then you'll also see new tab for External Links appearing on the Main.AllDocs page:
Security Implications
Note that this application has some security implications since it allows everyone having access to the AllDocs page to see all external links available anywhere in the wiki, even links that are on page for which they don't have access to. To mitigate this risk, it's possible to change the Page Rights for the XWiki.ExternalLinks document.
Tips
If you wish to check the Link Checker indexation queue size you could use the following in a page (you'll need Programming Rights):
import com.xpn.xwiki.web.*
import org.xwiki.rendering.transformation.*
def checker = Utils.getComponent(Transformation.class, "linkchecker")
print "Link checker queue size = ${checker.linkQueue.size()}"
{{/groovy}}
Prerequisites & Installation Instructions
The Link Checker isn't enabled by default. To enable it, edit your xwiki.properties file and add the linkchecker transformation. For example: