mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix linking to notes
This commit is contained in:
		| @@ -125,10 +125,10 @@ function getNoteTitleForPath(notePathArray) { | |||||||
|  * - this means that archived paths is returned only if there's no non-archived path |  * - this means that archived paths is returned only if there's no non-archived path | ||||||
|  * - you can check whether returned path is archived using isArchived() |  * - you can check whether returned path is archived using isArchived() | ||||||
|  */ |  */ | ||||||
| function getSomePath(note) { | function getSomePath(note, path = []) { | ||||||
|     // first try to find note within hoisted note, otherwise take any existing note path |     // first try to find note within hoisted note, otherwise take any existing note path | ||||||
|     return getSomePathInner(note, [], true) |     return getSomePathInner(note, path, true) | ||||||
|         || getSomePathInner(note, [], false); |         || getSomePathInner(note, path, false); | ||||||
| } | } | ||||||
|  |  | ||||||
| function getSomePathInner(note, path, respectHoistng) { | function getSomePathInner(note, path, respectHoistng) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user