jenkins-bot has submitted this change and it was merged. Change subject: Round trip server: Link failed fetches to fetch source. ......................................................................
Round trip server: Link failed fetches to fetch source. This helps us click-through to figure out if the failed fetch is a problem with the source or with our server. Change-Id: Ibdf57ac3ca0f3e88a7cc0cc3469b5805550a8a3b --- M js/tests/server/server.js 1 file changed, 6 insertions(+), 1 deletion(-) Approvals: Subramanya Sastry: Looks good to me, approved jenkins-bot: Verified diff --git a/js/tests/server/server.js b/js/tests/server/server.js index 9f0e5d5..402cf24 100755 --- a/js/tests/server/server.js +++ b/js/tests/server/server.js @@ -748,7 +748,12 @@ res.write('<h1> The following ' + n + ' titles return 404</h1>'); res.write('<ul>'); for (var i = 0; i < n; i++) { - res.write('<li> ' + rows[i].prefix + ':' + rows[i].title + ' </li>'); + var prefix = rows[i].prefix, title = rows[i].title; + var url = prefix + '.wikipedia.org/wiki/' + title; + var name = prefix + ':' + title; + res.write('<li><a href="http://' + + encodeURI(url).replace('&', '&') + '">' + + name.replace('&', '&') + '</a></li>\n'); } res.write( '</ul>'); } -- To view, visit https://gerrit.wikimedia.org/r/61408 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ibdf57ac3ca0f3e88a7cc0cc3469b5805550a8a3b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Parsoid Gerrit-Branch: master Gerrit-Owner: Cscott <wikime...@cscott.net> Gerrit-Reviewer: GWicke <gwi...@wikimedia.org> Gerrit-Reviewer: MarkTraceur <mtrac...@member.fsf.org> Gerrit-Reviewer: Subramanya Sastry <ssas...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits