mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	navigation state is more nicely and completely serialized into URL
This commit is contained in:
		| @@ -155,14 +155,14 @@ $(window).on('beforeunload', () => { | ||||
|  | ||||
| $(window).on('hashchange', function() { | ||||
|     if (treeService.isNotePathInAddress()) { | ||||
|         const [notePath, ntxId] = treeService.getHashValueFromAddress(); | ||||
|         const {notePath, ntxId, viewScope} = treeService.parseNavigationStateFromAddress(); | ||||
|  | ||||
|         if (!notePath && !ntxId) { | ||||
|             console.log(`Invalid hash value "${document.location.hash}", ignoring.`); | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         appContext.tabManager.switchToNoteContext(ntxId, notePath); | ||||
|         appContext.tabManager.switchToNoteContext(ntxId, notePath, viewScope); | ||||
|     } | ||||
| }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user