mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	fix(share_settings): disallow "/" as share root for now as it is not working
this will be handled by cleanUrl PR later on
This commit is contained in:
		@@ -84,7 +84,9 @@ export default class ShareSettingsOptions extends OptionsWidget {
 | 
				
			|||||||
            // http://localhost:8080/sharePath/test/assets/v0.93.0/node_modules/normalize.css/normalize.css
 | 
					            // http://localhost:8080/sharePath/test/assets/v0.93.0/node_modules/normalize.css/normalize.css
 | 
				
			||||||
            // alternatively/better approach: fix this behaviour :-)
 | 
					            // alternatively/better approach: fix this behaviour :-)
 | 
				
			||||||
            const normalizedSharePath = this.normalizeSharePathInput(sharePathInput);
 | 
					            const normalizedSharePath = this.normalizeSharePathInput(sharePathInput);
 | 
				
			||||||
            const optionValue = (!sharePathInput || !normalizedSharePath) ? DEFAULT_SHAREPATH : normalizedSharePath;
 | 
					            const optionValue = (!sharePathInput || !normalizedSharePath || normalizedSharePath === "/")
 | 
				
			||||||
 | 
					                ? DEFAULT_SHAREPATH
 | 
				
			||||||
 | 
					                : normalizedSharePath;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            await this.updateOption<"sharePath">("sharePath", optionValue);
 | 
					            await this.updateOption<"sharePath">("sharePath", optionValue);
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user