mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
make it again possible to open notes through URL hash
This commit is contained in:
@@ -19,7 +19,10 @@ function getNoteIdFromNotePath(notePath) {
|
||||
|
||||
const path = notePath.split("/");
|
||||
|
||||
return path[path.length - 1];
|
||||
const lastSegment = path[path.length - 1];
|
||||
|
||||
// path could have also tabId suffix
|
||||
return lastSegment.split("-")[0];
|
||||
}
|
||||
|
||||
async function getNotePath(node) {
|
||||
|
||||
Reference in New Issue
Block a user