diff --git a/mod/url/db/upgradelib.php b/mod/url/db/upgradelib.php
index c47b733..2b396bd 100644
--- a/mod/url/db/upgradelib.php
+++ b/mod/url/db/upgradelib.php
@@ -62,8 +62,8 @@ function url_20_migrate() {
             // ignore not maintained local files - sorry
             continue;
         } else if (!strpos($path, '://')) {
-            // not URL
-            return;
+            // not URL, so skip the migration of this candidate only
+            continue;
         } else if (preg_match("|$CFG->wwwroot/file.php(\?file=)?/$siteid(/[^\s'\"&\?#]+)|", $path, $matches)) {
             // handled by resource module
             return;
