From ffe3602c5b571dceb438bc1041c20f8f35a07d07 Mon Sep 17 00:00:00 2001
From: Myron Turner <turnermm02@shaw.ca>
Date: Sun, 9 Jul 2017 22:39:35 -0500
Subject: [PATCH] show pages where broken links occur: page_id => broken_link

---
 bin/wantedpages.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/wantedpages.php b/bin/wantedpages.php
index 54bfd4755..44254a8ec 100755
--- a/bin/wantedpages.php
+++ b/bin/wantedpages.php
@@ -134,13 +134,14 @@ class WantedPagesCLI extends DokuCLI {
         $links        = array();
         $cns          = getNS($page['id']);
         $exists       = false;
+        $pid = $page['id'];
         foreach($instructions as $ins) {
             if($ins[0] == 'internallink' || ($conf['camelcase'] && $ins[0] == 'camelcaselink')) {
                 $mid = $ins[1][0];
                 resolve_pageid($cns, $mid, $exists);
                 if(!$exists) {
                     list($mid) = explode('#', $mid); //record pages without hashs
-                    $links[] = $mid;
+                    $links[] = "$pid => $mid";
                 }
             }
         }
-- 
GitLab