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.
This commit is contained in:
Vishesh Handa
2020-07-08 00:49:45 +02:00
parent f94c119e9a
commit ad535f3be7

View File

@ -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);