mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 20:43:20 +08:00
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:
@ -473,8 +473,7 @@ class Note with NotesNotifier {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var isLocal = (path.startsWith('/') || path.startsWith('.')) &&
|
var isLocal = !path.contains('://');
|
||||||
!path.contains('://');
|
|
||||||
if (isLocal) {
|
if (isLocal) {
|
||||||
l.filePath = p.join(parent.folderPath, p.normalize(l.filePath));
|
l.filePath = p.join(parent.folderPath, p.normalize(l.filePath));
|
||||||
links.add(l);
|
links.add(l);
|
||||||
|
Reference in New Issue
Block a user