mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fixes for relative paths
This commit is contained in:
		| @@ -207,7 +207,8 @@ function findImageLinks(content, foundLinks) { | ||||
|     } | ||||
|  | ||||
|     // removing absolute references to server to keep it working between instances | ||||
|     return content.replace(/src="[^"]*\/api\/images\//g, 'src="/api/images/'); | ||||
|     // we also omit / at the beginning to keep the paths relative | ||||
|     return content.replace(/src="[^"]*\/api\/images\//g, 'src="api/images/'); | ||||
| } | ||||
|  | ||||
| function findHyperLinks(content, foundLinks) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user