From ad535f3be7558a95377dfcbc489e4bfff3ea176e Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Wed, 8 Jul 2020 00:49:45 +0200 Subject: [PATCH] Note Links: Considering anything which doesn't have a '://' as local Only local notes are shown in the backlinks. Earlier our idea of local links was notes which start with './', but now since we accept the direct filename as well, we should support that in the backlinks as well. --- lib/core/note.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/core/note.dart b/lib/core/note.dart index b9973621..e073d369 100644 --- a/lib/core/note.dart +++ b/lib/core/note.dart @@ -473,8 +473,7 @@ class Note with NotesNotifier { continue; } - var isLocal = (path.startsWith('/') || path.startsWith('.')) && - !path.contains('://'); + var isLocal = !path.contains('://'); if (isLocal) { l.filePath = p.join(parent.folderPath, p.normalize(l.filePath)); links.add(l);