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:
Panagiotis Papadopoulos
2025-04-25 08:53:13 +02:00
parent 128d8907c3
commit 30a191cedf

View File

@@ -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
// alternatively/better approach: fix this behaviour :-)
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);
});