Fix missing redirects in network

Fixes #33.
This commit is contained in:
Florine W. Dekker 2020-04-21 15:00:01 +02:00
parent 42d1cdae04
commit 83177feca6
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "interlanguage-checker",
"version": "1.10.2",
"version": "1.10.3",
"description": "Check the consistency of MediaWiki interlanguage links in a simple overview.",
"author": "Felix W. Dekker",
"browser": "bundle.js",

View File

@ -579,6 +579,7 @@ export const discoverNetwork = async function (mwm, title, progressCb) {
// Follow redirects
if (!result.link.equals(next)) {
redirects.push(...(result.redirects));
next = result.link;
if (history.some(it => it.equals(next)))
continue;